Blobs
Utility functions for working with EIP-4844 Blobs.
Functions
Name | Description |
---|---|
Blobs.commitmentsToVersionedHashes | Transform a list of Commitments to Blob Versioned Hashes. |
Blobs.commitmentToVersionedHash | Transform a Commitment to its Blob Versioned Hash. |
Blobs.from | Transforms arbitrary data to Blobs.Blobs . |
Blobs.sidecarsToVersionedHashes | Transforms a list of Blobs.BlobSidecars to their Blob Versioned Hashes. |
Blobs.to | Transforms Ox-shaped Blobs.Blobs into the originating data. |
Blobs.toBytes | Transforms Ox-shaped Blobs.Blobs into the originating data. |
Blobs.toCommitments | Compute commitments from a list of Blobs.Blobs . |
Blobs.toHex | Transforms Ox-shaped Blobs.Blobs into the originating data. |
Blobs.toProofs | Compute the proofs for a list of Blobs.Blobs and their commitments. |
Blobs.toSidecars | Transforms Blobs.Blobs into a Blobs.BlobSidecars array. |
Blobs.toVersionedHashes | Compute Blob Versioned Hashes from a list of Blobs.Blobs . |
Errors
Name | Description |
---|---|
Blobs.BlobSizeTooLargeError | Thrown when the blob size is too large. |
Blobs.EmptyBlobError | Thrown when the blob is empty. |
Blobs.EmptyBlobVersionedHashesError | Thrown when the blob versioned hashes are empty. |
Blobs.InvalidVersionedHashSizeError | Thrown when the blob versioned hash size is invalid. |
Blobs.InvalidVersionedHashVersionError | Thrown when the blob versioned hash version is invalid. |
Types
Name | Description |
---|---|
Blobs.Blob | Root type for a Blob. |
Blobs.Blobs | A list of Blobs.Blob . |
Blobs.BlobSidecar | Type for a Blob Sidecar that contains a blob, as well as its KZG commitment and proof. |
Blobs.BlobSidecars | A list of Blobs.BlobSidecar . |