Function lambdaworks_crypto::hash::hash_to_field::hash_to_field

source ยท
pub fn hash_to_field<M: IsModulus<UnsignedInteger<N>> + Clone, const N: usize>(
    pseudo_random_bytes: &[u8],
    count: usize,
) -> Vec<FieldElement<MontgomeryBackendPrimeField<M, N>>>
Expand description

Converts a hash, represented by an array of bytes, into a vector of field elements For more info, see https://www.ietf.org/id/draft-irtf-cfrg-hash-to-curve-16.html#name-hashing-to-a-finite-field