Skip to main content

HashingAlgorithm

Trait HashingAlgorithm 

Source
pub trait HashingAlgorithm<S>{
    type Output;

    // Required method
    fn hash(
        input: <<S as StandardCryptographicSuite>::Transformation as TransformationAlgorithm<S>>::Output,
        proof_configuration: ProofConfigurationRef<'_, S>,
        verification_method: &<S as StandardCryptographicSuite>::VerificationMethod,
    ) -> Result<Self::Output, HashingError>;
}
Expand description

Hashing algorithm.

Required Associated Types§

Required Methods§

Source

fn hash( input: <<S as StandardCryptographicSuite>::Transformation as TransformationAlgorithm<S>>::Output, proof_configuration: ProofConfigurationRef<'_, S>, verification_method: &<S as StandardCryptographicSuite>::VerificationMethod, ) -> Result<Self::Output, HashingError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl HashingAlgorithm<EcdsaRdfc2019> for EcdsaRdfc2019HashingAlgorithm

Source§

impl HashingAlgorithm<EcdsaSd2023> for HashingAlgorithm

Source§

impl<S> HashingAlgorithm<S> for Eip712Hashing

Source§

type Output = [u8; 66]

Source§

fn hash( input: TypedData, _proof_configuration: ProofConfigurationRef<'_, S>, _verification_method: &<S as StandardCryptographicSuite>::VerificationMethod, ) -> Result<<Eip712Hashing as HashingAlgorithm<S>>::Output, HashingError>

Implementors§