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
Here's an example to use [Poseidon](./mod.rs) struct for hashing input of length `WIDTH`. Note that input is padded with extra zeroes if length is not equal to width.
92
92
93
93
```rust
94
-
useronkathon::field::prime::PlutoBaseField; // can be any field that implements FiniteField trait
94
+
useronkathon::{hashes::poseidon::Poseidon, field::prime::PlutoBaseField}; // can be any field that implements FiniteField trait
95
95
96
96
constWIDTH:usize=10;
97
97
constALPHA:usize=5;
@@ -117,7 +117,7 @@ Another example using Sponge API for arbitrary length element hashing. Simplex s
0 commit comments