Trait snarkvm_algorithms::traits::crh::CRH [−][src]
pub trait CRH: Clone + From<Self::Parameters> { type Output: Clone + Debug + Display + ToBytes + FromBytes + Eq + Hash + Default + Send + Sync + Copy; type Parameters: CRHParameters; const INPUT_SIZE_BITS: usize; fn setup<R: Rng>(r: &mut R) -> Self; fn hash(&self, input: &[u8]) -> Result<Self::Output, CRHError>; fn parameters(&self) -> &Self::Parameters; }
Associated Types
type Output: Clone + Debug + Display + ToBytes + FromBytes + Eq + Hash + Default + Send + Sync + Copy[src]type Parameters: CRHParameters[src]Associated Constants
const INPUT_SIZE_BITS: usize[src]Required methods
fn parameters(&self) -> &Self::Parameters[src]Implementors
impl<G: Group + ProjectiveCurve, S: PedersenSize> CRH for BoweHopwoodPedersenCompressedCRH<G, S>[src]
impl<G: Group + ProjectiveCurve, S: PedersenSize> CRH for BoweHopwoodPedersenCompressedCRH<G, S>[src]type Output = <G::Affine as AffineCurve>::BaseFieldtype Parameters = PedersenCRHParameters<G, S>Returns the affine x-coordinate as the collision-resistant hash output.
type Output = <G::Affine as AffineCurve>::BaseFieldtype Parameters = PedersenCRHParameters<G, S>type Output = Gtype Parameters = PedersenCRHParameters<G, S>type Output = Gtype Parameters = PedersenCRHParameters<G, S>