@ethereumjs/util / Kzg
Interface for an externally provided kzg library used when creating blob transactions
▸ blobToKzgCommitment(blob
): Uint8Array
Name | Type |
---|---|
blob |
Uint8Array |
Uint8Array
▸ computeBlobKzgProof(blob
, commitment
): Uint8Array
Name | Type |
---|---|
blob |
Uint8Array |
commitment |
Uint8Array |
Uint8Array
▸ loadTrustedSetup(filePath?
): void
Name | Type |
---|---|
filePath? |
string |
void
▸ verifyBlobKzgProofBatch(blobs
, expectedKzgCommitments
, kzgProofs
): boolean
Name | Type |
---|---|
blobs |
Uint8Array [] |
expectedKzgCommitments |
Uint8Array [] |
kzgProofs |
Uint8Array [] |
boolean
▸ verifyKzgProof(polynomialKzg
, z
, y
, kzgProof
): boolean
Name | Type |
---|---|
polynomialKzg |
Uint8Array |
z |
Uint8Array |
y |
Uint8Array |
kzgProof |
Uint8Array |
boolean