Struct askar_crypto::alg::bls::G1
source · pub struct G1;
Available on crate feature
bls
only.Expand description
G1 curve
Trait Implementations§
source§impl BlsPublicKeyType for G1
impl BlsPublicKeyType for G1
§type BufferSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>
type BufferSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>
The size of the serialized public key
source§fn from_secret_scalar(secret: &Scalar) -> Self::Buffer
fn from_secret_scalar(secret: &Scalar) -> Self::Buffer
Initialize from the secret scalar
source§fn from_public_bytes(key: &[u8]) -> Result<Self::Buffer, Error>
fn from_public_bytes(key: &[u8]) -> Result<Self::Buffer, Error>
Initialize from the compressed bytes
Auto Trait Implementations§
impl RefUnwindSafe for G1
impl Send for G1
impl Sync for G1
impl Unpin for G1
impl UnwindSafe for G1
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