Skip to content

Commit

Permalink
fix lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
bxue-l2 committed Jan 24, 2025
1 parent e781e65 commit cb7323e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions crates/cryptography/src/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct EigenDABlobWitness {
pub proofs: Vec<Bytes>,
}

///
/// impl EigenDABlobWitness
impl EigenDABlobWitness {
/// Create a default struct
pub fn new() -> Self {
Expand All @@ -40,7 +40,7 @@ impl EigenDABlobWitness {
}

/// This function computes a witness for a eigenDA blob
/// nitro code https://github.com/Layr-Labs/nitro/blob/14f09745b74321f91d1f702c3e7bb5eb7d0e49ce/arbitrator/prover/src/kzgbn254.rs#L141
/// nitro code <https://github.com/Layr-Labs/nitro/blob/14f09745b74321f91d1f702c3e7bb5eb7d0e49ce/arbitrator/prover/src/kzgbn254.rs#L141>
/// could refactor in the future, such that both host and client can compute the proof
pub fn push_witness(&mut self, blob: &[u8], srs: &SRS) -> Result<(), KzgError> {
// TODO check if KZG can just take a reference to srs, it saves memory
Expand Down Expand Up @@ -120,10 +120,9 @@ impl EigenDABlobWitness {
G1Affine::new(x, y)
})
.collect();
let pairing_result =
batch::verify_blob_kzg_proof(&lib_blobs, &lib_commitments, &lib_proofs).unwrap();

pairing_result
batch::verify_blob_kzg_proof(&lib_blobs, &lib_commitments, &lib_proofs)
.map_err(|_| false)
.unwrap()
}
}

Expand Down

0 comments on commit cb7323e

Please sign in to comment.