Skip to content

Commit

Permalink
casting to u64 in helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Feb 10, 2025
1 parent a3096ee commit 8d93abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ pub fn compute_challenge(blob: &Blob, commitment: &G1Affine) -> Result<Fr, KzgEr

// Step 2: Copy the number of field elements (blob polynomial length)
// Convert to bytes using the configured endianness
let number_of_field_elements = blob_poly.len().to_be_bytes();
let number_of_field_elements = (blob_poly.len() as u64).to_be_bytes();
digest_bytes[offset..offset + 8].copy_from_slice(&number_of_field_elements);
offset += 8;

Expand Down

0 comments on commit 8d93abd

Please sign in to comment.