eth2.0-specs/specs/eip4844
George Kadianakis 23d3aeebba
EIP4844 precompile: Be strict when parsing field elements from network (#3138)
* EIP4844: bytes_to_bls_field() must not accept values >= BLS_MODULUS

bytes_to_bls_field() will be used in the precompile and hence it should error out when provided with malicious inputs.

* EIP4844: Add hash_to_bls_field() for use in compute_challenges()

The previous commit made bytes_to_bls_field() be strict about its inputs. However in compute_challenges() we are
dealing with Fiat-Shamir and hash outputs that could be innocuously higher than the modulus. For this reason we add the
hash_to_bls_field() helper for use in compute_challenges().

* EIP4844: Further use of bytes_to_bls_field() // Fix executable spec

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2022-12-01 14:59:00 +02:00
..
beacon-chain.md WIP. Fixing mypy errors 2022-11-28 21:01:41 +08:00
fork.md Merge branch 'dev' into pr3052 2022-11-18 02:44:46 +08:00
p2p-interface.md Merge pull request #3108 from realbigsean/validate-blobs-sidecar-in-gossip 2022-11-17 16:31:14 -07:00
polynomial-commitments.md EIP4844 precompile: Be strict when parsing field elements from network (#3138) 2022-12-01 14:59:00 +02:00
validator.md Enable EIP4844 lint and fix Pylint 2022-11-28 20:01:50 +08:00