From ddb2b64d6dd1cd0e339ea3c417477ad8c90ab3f9 Mon Sep 17 00:00:00 2001 From: Ansgar Dietrichs Date: Tue, 22 Nov 2022 12:24:11 -0300 Subject: [PATCH] clarify endianness --- EIPS/eip-4844.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EIPS/eip-4844.md b/EIPS/eip-4844.md index 0febda5a70a3a..fb77b528598a4 100644 --- a/EIPS/eip-4844.md +++ b/EIPS/eip-4844.md @@ -267,7 +267,8 @@ def point_evaluation_precompile(input: Bytes) -> Bytes: # Verify KZG proof assert verify_kzg_proof(commitment, z, y, kzg_proof) - return Bytes(U256(FIELD_ELEMENTS_PER_BLOB).to_bytes32() + U256(BLS_MODULUS).to_bytes32()) + # Return FIELD_ELEMENTS_PER_BLOB and BLS_MODULUS as padded 32 byte big endian values + return Bytes(U256(FIELD_ELEMENTS_PER_BLOB).to_be_bytes32() + U256(BLS_MODULUS).to_be_bytes32()) ``` ### Gas price of blobs (Simplified version)