blsful 3.1.0

BLS signature implementation according to the IETF spec on the BLS12-381 curve.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::impls::inner_types::*;
use core::fmt::Display;

/// The hash to scalar methods
pub trait HashToScalar {
    /// The output scalar ground
    type Output: PrimeField + Display;

    /// Compute the output from a hash method
    fn hash_to_scalar<B: AsRef<[u8]>, C: AsRef<[u8]>>(m: B, dst: C) -> Self::Output;
}