Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Jan 3, 2024
1 parent fd4c5fd commit d67b8fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/vector_commitment/tests/test_vector_commitment.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,4 @@ fn test_vector_commitment_decommit() {

// TODO: test validate_vector_commitment


2 changes: 1 addition & 1 deletion src/vector_commitment/vector_commitment.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ fn truncated_blake2s(x: felt252, y: felt252) -> felt252 {
let mut data = ArrayTrait::<u32>::new();
data.append_big_endian(x);
data.append_big_endian(y);

// Truncate hash - convert value to felt, by taking the least significant 160 bits.
let hash = blake2s(data).flip_endianness() % 0x10000000000000000000000000000000000000000;
hash.try_into().unwrap()
Expand Down

0 comments on commit d67b8fe

Please sign in to comment.