Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP-4844: Change to versioned hashes #5106

Merged
merged 1 commit into from
May 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions EIPS/eip-4844.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,14 @@ We do network-level validation of `BlobTransactionNetworkWrapper` objects as fol

```python
def validate_blob_transaction_wrapper(wrapper: BlobTransactionNetworkWrapper):
commitments = wrapper.tx.message.blob_commitments
versioned_hashes = wrapper.tx.message.blob_versioned_hashes
kzgs = wrapper.blob_kzgs
blobs = wrapper.blobs
assert len(commitments) == len(kzgs) == len(blobs)
for commitment, kzg, blob in zip(commitments, kzgs, blobs):
assert len(versioned_hashes) == len(kzgs) == len(blobs)
for versioned_hash, kzg, blob in zip(versioned_hashes, kzgs, blobs):
# note: assert blob is not malformatted
assert kzg == blob_to_kzg(blob)
assert commitment == kzg_to_commitment(kzg)
assert versioned_hash == kzg_to_versioned_hash(kzg)
```

## Rationale
Expand Down