pub struct BlsPublicKey {
pub bytes: [u8; 48],
}Expand description
A BLS12-381 public key (48 bytes, G1 point).
Fields§
§bytes: [u8; 48]The 48-byte compressed G1 public key.
Implementations§
Source§impl BlsPublicKey
impl BlsPublicKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, SignerError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, SignerError>
Import from 48 bytes.
Trait Implementations§
Source§impl Clone for BlsPublicKey
impl Clone for BlsPublicKey
Source§fn clone(&self) -> BlsPublicKey
fn clone(&self) -> BlsPublicKey
Returns a duplicate of the value. Read more
1.0.0 · 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 BlsPublicKey
impl Debug for BlsPublicKey
Source§impl PartialEq for BlsPublicKey
impl PartialEq for BlsPublicKey
impl Eq for BlsPublicKey
impl StructuralPartialEq for BlsPublicKey
Auto Trait Implementations§
impl Freeze for BlsPublicKey
impl RefUnwindSafe for BlsPublicKey
impl Send for BlsPublicKey
impl Sync for BlsPublicKey
impl Unpin for BlsPublicKey
impl UnsafeUnpin for BlsPublicKey
impl UnwindSafe for BlsPublicKey
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