Skip to content

Commit

Permalink
Merge branch 'main' into feat-electra-block-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes authored Apr 26, 2024
2 parents 954cd41 + 6c73053 commit 149a0a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum-consensus/src/deneb/polynomial_commitments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn compute_kzg_proof<const BYTES_PER_BLOB: usize>(

let (proof, evaluation) =
c_kzg::KzgProof::compute_kzg_proof(&blob, &evaluation_point, kzg_settings)?;
let proof = KzgProof::try_from(proof.to_bytes().as_ref()).expect("correct size");
let proof = KzgProof::try_from(proof.to_bytes().as_slice()).expect("correct size");
let evaluation = FieldElement::try_from(evaluation.as_slice()).expect("correct size");

let result = ProofAndEvaluation { proof, evaluation };
Expand All @@ -98,7 +98,7 @@ pub fn compute_blob_kzg_proof<const BYTES_PER_BLOB: usize>(

let proof = c_kzg::KzgProof::compute_blob_kzg_proof(&blob, &commitment, kzg_settings)?;

Ok(KzgProof::try_from(proof.to_bytes().as_ref()).expect("input is correct size"))
Ok(KzgProof::try_from(proof.to_bytes().as_slice()).expect("input is correct size"))
}

pub fn verify_kzg_proof(
Expand Down

0 comments on commit 149a0a5

Please sign in to comment.