Skip to content

Commit 1c19c22

Browse files
committed
fix: two tests in poseidon/README.md
1 parent 53e90d8 commit 1c19c22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hashes/poseidon/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ sage poseidon_constants.sage 1 0 7 16 3 10 0x65
9191
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.
9292

9393
```rust
94-
use ronkathon::field::prime::PlutoBaseField; // can be any field that implements FiniteField trait
94+
use ronkathon::{hashes::poseidon::Poseidon, field::prime::PlutoBaseField}; // can be any field that implements FiniteField trait
9595

9696
const WIDTH: usize = 10;
9797
const ALPHA: usize = 5;
@@ -117,7 +117,7 @@ Another example using Sponge API for arbitrary length element hashing. Simplex s
117117

118118
```rust
119119
use rand::rng;
120-
use ronathon::field::prime::PlutoBaseField;
120+
use ronathon::{field::prime::PlutoBaseField, hashes::poseidon::sponge::PoseidonSponge};
121121

122122
let size = rng.gen::<u32>();
123123

0 commit comments

Comments
 (0)