pub struct BlsSignature {
pub bytes: [u8; 96],
}Expand description
A BLS12-381 signature (96 bytes, G2 point).
Fields§
§bytes: [u8; 96]The 96-byte compressed G2 signature.
Implementations§
Source§impl BlsSignature
impl BlsSignature
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, SignerError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, SignerError>
Import from 96 bytes.
Trait Implementations§
Source§impl Clone for BlsSignature
impl Clone for BlsSignature
Source§fn clone(&self) -> BlsSignature
fn clone(&self) -> BlsSignature
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 BlsSignature
impl Debug for BlsSignature
Source§impl Display for BlsSignature
impl Display for BlsSignature
Source§impl PartialEq for BlsSignature
impl PartialEq for BlsSignature
impl Eq for BlsSignature
impl StructuralPartialEq for BlsSignature
Auto Trait Implementations§
impl Freeze for BlsSignature
impl RefUnwindSafe for BlsSignature
impl Send for BlsSignature
impl Sync for BlsSignature
impl Unpin for BlsSignature
impl UnsafeUnpin for BlsSignature
impl UnwindSafe for BlsSignature
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