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