From a755dbaaa9355018adf53694522479783ecd3089 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Thu, 4 Jul 2024 11:51:54 +0530 Subject: [PATCH] inclusion proof depth --- beacon_chain/spec/datatypes/eip7594.nim | 2 +- beacon_chain/spec/eip7594_helpers.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/spec/datatypes/eip7594.nim b/beacon_chain/spec/datatypes/eip7594.nim index 88d9cb383..26794eb93 100644 --- a/beacon_chain/spec/datatypes/eip7594.nim +++ b/beacon_chain/spec/datatypes/eip7594.nim @@ -25,7 +25,7 @@ const CELLS_PER_EXT_BLOB* = FIELD_ELEMENTS_PER_EXT_BLOB div FIELD_ELEMENTS_PER_CELL # The number of cells in an extended blob | # 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 BLSFieldElement* = KzgBytes32 diff --git a/beacon_chain/spec/eip7594_helpers.nim b/beacon_chain/spec/eip7594_helpers.nim index 1abcddcd9..9005942de 100644 --- a/beacon_chain/spec/eip7594_helpers.nim +++ b/beacon_chain/spec/eip7594_helpers.nim @@ -201,7 +201,7 @@ proc get_data_column_sidecars*(signed_block: deneb.SignedBeaconBlock | electra.S signed_block_header: SignedBeaconBlockHeader blck = signed_block.message cellsAndProofs: seq[KzgCellsAndKzgProofs] - kzg_incl_proof: array[KZG_COMMITMENT_INCLUSION_PROOF_DEPTH, Eth2Digest] + kzg_incl_proof: array[4, Eth2Digest] blck.body.build_proof( 27.GeneralizedIndex,