You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: cryptography/kzg_multi_open/src/fk20/verifier.rs
+1
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,7 @@ impl FK20Verifier {
192
192
/// Efficiently refers to being able to verify these proofs faster than verifying each proof individually.
193
193
///
194
194
/// The matching function in the spec is: https://github.com/ethereum/consensus-specs/blob/b9e7b031b5f2c18d76143007ea779a32b5505155/specs/_features/eip7594/polynomial-commitments-sampling.md#compute_verify_cell_kzg_proof_batch_challenge
let bytes32 :[u8;BYTES_PER_FIELD_ELEMENT]= scalar_bytes.try_into().expect("infallible: expected blob chunks to be exactly {SCALAR_SERIALIZED_SIZE} bytes, since blob was a multiple of {SCALAR_SERIALIZED_SIZE");
48
+
let bytes32 = scalar_bytes.try_into().expect("infallible: expected blob chunks to be exactly {SCALAR_SERIALIZED_SIZE} bytes, since blob was a multiple of {SCALAR_SERIALIZED_SIZE");
49
49
50
50
// Convert the CtOption into Option
51
-
let option_scalar:Option<Scalar> = Scalar::from_bytes_be(&bytes32).into();
51
+
let option_scalar:Option<Scalar> = Scalar::from_bytes_be(bytes32).into();
0 commit comments