Skip to content

Commit

Permalink
rework interface changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqvq committed Aug 7, 2023
1 parent a8f70dc commit 8f03c04
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 379 deletions.
6 changes: 3 additions & 3 deletions fastcrypto-zkp/src/bn254/poseidon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ mod test {
]))
.unwrap()
.to_string(),
"13895998335546007571506436905298853781676311844723695580596383169075721618652"
"9989051620750914585850546081941653841776809718687451684622678807385399211877"
);
assert_eq!(
to_poseidon_hash(to_bigint_arr(vec![
Expand All @@ -108,12 +108,12 @@ mod test {
]))
.unwrap()
.to_string(),
"14023706212980258922092162104379517008998397500440232747089120702484714603058"
"4123755143677678663754455867798672266093104048057302051129414708339780424023"
);

assert!(to_poseidon_hash(to_bigint_arr(vec![
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30
24, 25, 26, 27, 28, 29, 30, 31, 32
]))
.is_err());
}
Expand Down
Loading

0 comments on commit 8f03c04

Please sign in to comment.