[−][src]Struct hash2curve::bls381g1::Bls12381G1Sswu
This is supported on
feature="bls"
only.BLS12381G1_XMD:SHA-256_SSWU provides both Random Oracle (RO) Nonuniform (NU)
Methods
impl Bls12381G1Sswu
[src]
pub fn new(dst: DomainSeparationTag) -> Self
[src]
This is supported on
feature="bls"
only.Create a new implementation with the default
Trait Implementations
impl From<DomainSeparationTag> for Bls12381G1Sswu
[src]
fn from(dst: DomainSeparationTag) -> Self
[src]
impl HashToCurveXmd for Bls12381G1Sswu
[src]
type Output = G1
The return type by the underlying hash to curve implementation
fn encode_to_curve_xmd<D: BlockInput + Digest<OutputSize = U32>>(
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
[src]
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
fn hash_to_curve_xmd<D: BlockInput + Digest<OutputSize = U32>>(
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
[src]
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
impl HashToCurveXof for Bls12381G1Sswu
[src]
type Output = G1
The return type by the underlying hash to curve implementation
fn encode_to_curve_xof<X: ExtendableOutput + Input + Reset + Default>(
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
[src]
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
fn hash_to_curve_xof<X: ExtendableOutput + Input + Reset + Default>(
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
[src]
&self,
data: &[u8]
) -> Result<Self::Output, HashingError>
Auto Trait Implementations
impl RefUnwindSafe for Bls12381G1Sswu
impl Send for Bls12381G1Sswu
impl Sync for Bls12381G1Sswu
impl Unpin for Bls12381G1Sswu
impl UnwindSafe for Bls12381G1Sswu
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,