From 113b22b3404a7f45235b07db19c946ed9020591b Mon Sep 17 00:00:00 2001 From: terence tsao Date: Thu, 9 Jan 2025 19:51:28 -0800 Subject: [PATCH] Fix kzg commitment inclusion proof depth minimal value --- CHANGELOG.md | 1 + config/fieldparams/minimal.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1329a57bdeff..3e62b0b082c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,7 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve - Added check to prevent nil pointer deference or out of bounds array access when validating the BLSToExecutionChange on an impossibly nil validator. - EIP-7691: Ensure new blobs subnets are subscribed on epoch in advance. +- Fix kzg commitment inclusion proof depth minimal value. ### Security diff --git a/config/fieldparams/minimal.go b/config/fieldparams/minimal.go index 8f8f650a7349..c5e9eb4f0339 100644 --- a/config/fieldparams/minimal.go +++ b/config/fieldparams/minimal.go @@ -31,7 +31,7 @@ const ( BlobLength = 131072 // BlobLength defines the byte length of a blob. BlobSize = 131072 // defined to match blob.size in bazel ssz codegen BlobSidecarSize = 131928 // defined to match blob sidecar size in bazel ssz codegen - KzgCommitmentInclusionProofDepth = 17 // Merkle proof depth for blob_kzg_commitments list item + KzgCommitmentInclusionProofDepth = 10 // Merkle proof depth for blob_kzg_commitments list item ExecutionBranchDepth = 4 // ExecutionBranchDepth defines the number of leaves in a merkle proof of the execution payload header. SyncCommitteeBranchDepth = 5 // SyncCommitteeBranchDepth defines the number of leaves in a merkle proof of a sync committee. SyncCommitteeBranchDepthElectra = 6 // SyncCommitteeBranchDepthElectra defines the number of leaves in a merkle proof of a sync committee.