inclusion proof depth

This commit is contained in:
Agnish Ghosh 2024-07-04 11:51:54 +05:30
parent c6662bd914
commit a755dbaaa9
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,