Expand description
Traits to configure which cryptographic primitives the ZKP uses
Modules§
- blake2b
- A Blake2b HashSuite.
- poseidon2
- An implementation of Poseidon2 targeting the Baby Bear.
- sha
- Simple SHA-256 wrappers.
Structs§
- Hash
Suite - Make it easy compute both hash related traits from a single source
Traits§
- HashFn
- A trait that sets the hashes and encodings used by the ZKP.
- Rng
- A trait that sets the PRNG used by Fiat-Shamir. We allow specialization at this level rather than at RngCore because some hashes such as Poseidon have elements distributed uniformly over the field natively.
- RngFactory
- Responsible for constructing new Rngs.
Functions§
- hash_
suite_ from_ name - Construct a supported hash function given its name. Returns None is the name does not correspond to a supported hash function.