halo2/src/circuit/gadget/poseidon
Jack Grigg 9f654005c7 poseidon: Replace the `Duplex` struct with a `Sponge` struct
The `Sponge` struct's API correctly enforces the properties of a sponge:
it can absorb an arbitrary number of elements, and then squeeze an
arbitrary number of elements, but cannot absorb after it has squeezed.

Co-authored-by: ying tong <yingtong@z.cash>
2021-12-10 02:40:32 +00:00
..
pow5.rs poseidon: Replace the `Duplex` struct with a `Sponge` struct 2021-12-10 02:40:32 +00:00