mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-09 09:14:32 +00:00
926 B
926 B
Test format: Compute cells and proofs
Compute the cells and cell KZG proofs for a given blob
.
Test case format
The test data is declared in a data.yaml
file:
input:
blob: Blob -- the data blob
output: Tuple[List[Cell], List[KZGProof]] -- the cells and proofs
Blob
is a 131072-byte hexadecimal string, prefixed with0x
.Cell
is a 2048-byte hexadecimal string, prefixed with0x
.KZGProof
is a 48-byte hexadecimal string, prefixed with0x
.
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with 0x
.
Condition
The compute_cells_and_proofs
handler should compute the cells (chunks of an extended blob) and cell KZG proofs for blob
, and the result should match the expected output
. If the blob is invalid (e.g. incorrect length or one of the 32-byte blocks does not represent a BLS field element) it should error, i.e. the output should be null
.