pub struct Bls12381PublicKey { /* private fields */ }Expand description
Canonical, nonidentity, prime-subgroup minimum-size public key in G1.
Implementations§
Source§impl Bls12381PublicKey
impl Bls12381PublicKey
Sourcepub fn from_bytes(bytes: &[u8]) -> ApiResult<Self>
pub fn from_bytes(bytes: &[u8]) -> ApiResult<Self>
Parse a canonical, nonidentity G1 point in the prime-order subgroup.
Sourcepub fn key_validate(bytes: &[u8]) -> bool
pub fn key_validate(bytes: &[u8]) -> bool
Validate an external public-key encoding without retaining it.
Trait Implementations§
Source§impl Clone for Bls12381PublicKey
impl Clone for Bls12381PublicKey
Source§fn clone(&self) -> Bls12381PublicKey
fn clone(&self) -> Bls12381PublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Bls12381PublicKey
impl Debug for Bls12381PublicKey
impl Eq for Bls12381PublicKey
Source§impl PartialEq for Bls12381PublicKey
impl PartialEq for Bls12381PublicKey
impl StructuralPartialEq for Bls12381PublicKey
Auto Trait Implementations§
impl Freeze for Bls12381PublicKey
impl RefUnwindSafe for Bls12381PublicKey
impl Send for Bls12381PublicKey
impl Sync for Bls12381PublicKey
impl Unpin for Bls12381PublicKey
impl UnsafeUnpin for Bls12381PublicKey
impl UnwindSafe for Bls12381PublicKey
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