Skip to content

Commit

Permalink
clarify endianness (#6026)
Browse files Browse the repository at this point in the history
  • Loading branch information
adietrichs authored Nov 22, 2022
1 parent 3358a80 commit ec66af4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EIPS/eip-4844.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec66af4

Please sign in to comment.