pub struct Bls12381G1PrivateKey(/* private fields */);
Implementations§
Source§impl Bls12381G1PrivateKey
impl Bls12381G1PrivateKey
pub const LENGTH: usize = 32usize
pub fn public_key(&self) -> Bls12381G1PublicKey
pub fn sign_v1(&self, message: &[u8]) -> Bls12381G2Signature
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(slice: &[u8]) -> Result<Self, ()>
pub fn from_u64(n: u64) -> Result<Self, ()>
Auto Trait Implementations§
impl Freeze for Bls12381G1PrivateKey
impl RefUnwindSafe for Bls12381G1PrivateKey
impl Send for Bls12381G1PrivateKey
impl Sync for Bls12381G1PrivateKey
impl Unpin for Bls12381G1PrivateKey
impl UnwindSafe for Bls12381G1PrivateKey
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