Struct commonware_cryptography::bls12381::scheme::Bls12381
source · pub struct Bls12381 { /* private fields */ }Expand description
BLS12-381 implementation of the Scheme trait.
This implementation uses the blst crate for BLS12-381 operations. This
crate implments serialization according to the “ZCash BLS12-381” specification
(https://github.com/supranational/blst/tree/master?tab=readme-ov-file#serialization-format) and
hashes messages according to RFC 9380.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bls12381
impl RefUnwindSafe for Bls12381
impl Send for Bls12381
impl Sync for Bls12381
impl Unpin for Bls12381
impl UnwindSafe for Bls12381
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more