Skip to content

Commit

Permalink
tests: replace usize with u64
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Aug 27, 2023
1 parent 1e6f603 commit 3ec022a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ristretto/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ mod test {
let mut a: [u8; 64] = [0; 64];
for i in 0..n {
let mut data = b"TARI CRYPTO NUMS BASEPOINT LABEL - ".to_vec(); // Domain label
data.append(&mut i.to_le_bytes().to_vec()); // Append domain separated label counter
data.append(&mut (i as u64).to_le_bytes().to_vec()); // Append domain separated label counter
let hashed_v = Sha512::digest(&data);
a.copy_from_slice(&hashed_v);
let next_val = RistrettoPoint::from_uniform_bytes(&a);
Expand Down

0 comments on commit 3ec022a

Please sign in to comment.