| 65 | /// A Poseidon hash function, built around a sponge. |
| 66 | #[derive(Debug)] |
| 67 | pub struct MyHash< |
| 68 | F: PrimeField, |
| 69 | PoseidonChip: PoseidonSpongeInstructions<F, S, D, T, RATE>, |
| 70 | S: Spec<F, T, RATE>, |
| 71 | D: Domain<F, RATE>, |
| 72 | const T: usize, |
| 73 | const RATE: usize, |
| 74 | > { |
| 75 | pub sponge: Sponge<F, PoseidonChip, S, Absorbing<PaddedWord<F>, RATE>, D, T, RATE>, |
| 76 | } |
| 77 | |
| 78 | impl<F: PrimeField + Ord + FromUniformBytes<64>> PoseidonCommitChip<F, WIDTH, RATE, L> { |
| 79 | pub fn configure( |
nothing calls this directly
no outgoing calls
no test coverage detected