inclusion proof depth
This commit is contained in:
parent
c6662bd914
commit
a755dbaaa9
|
@ -25,7 +25,7 @@ const
|
||||||
CELLS_PER_EXT_BLOB* = FIELD_ELEMENTS_PER_EXT_BLOB div FIELD_ELEMENTS_PER_CELL
|
CELLS_PER_EXT_BLOB* = FIELD_ELEMENTS_PER_EXT_BLOB div FIELD_ELEMENTS_PER_CELL
|
||||||
# The number of cells in an extended blob |
|
# The number of cells in an extended blob |
|
||||||
# RANDOM_CHALLENGE_KZG_CELL_BATCH_DOMAIN = 'RCKZGCBATCH__V1_'
|
# RANDOM_CHALLENGE_KZG_CELL_BATCH_DOMAIN = 'RCKZGCBATCH__V1_'
|
||||||
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH = 4 # TODO dedupe vs network
|
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH* = 4 # TODO dedupe vs network
|
||||||
|
|
||||||
type
|
type
|
||||||
BLSFieldElement* = KzgBytes32
|
BLSFieldElement* = KzgBytes32
|
||||||
|
|
|
@ -201,7 +201,7 @@ proc get_data_column_sidecars*(signed_block: deneb.SignedBeaconBlock | electra.S
|
||||||
signed_block_header: SignedBeaconBlockHeader
|
signed_block_header: SignedBeaconBlockHeader
|
||||||
blck = signed_block.message
|
blck = signed_block.message
|
||||||
cellsAndProofs: seq[KzgCellsAndKzgProofs]
|
cellsAndProofs: seq[KzgCellsAndKzgProofs]
|
||||||
kzg_incl_proof: array[KZG_COMMITMENT_INCLUSION_PROOF_DEPTH, Eth2Digest]
|
kzg_incl_proof: array[4, Eth2Digest]
|
||||||
|
|
||||||
blck.body.build_proof(
|
blck.body.build_proof(
|
||||||
27.GeneralizedIndex,
|
27.GeneralizedIndex,
|
||||||
|
|
Loading…
Reference in New Issue