Struct scrypto::prelude::radix_engine_common::prelude::Bls12381G1PrivateKey
source · pub struct Bls12381G1PrivateKey(SecretKey);
Tuple Fields§
§0: SecretKey
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<Bls12381G1PrivateKey, ()>
pub fn from_u64(n: u64) -> Result<Bls12381G1PrivateKey, ()>
Auto Trait Implementations§
impl RefUnwindSafe for Bls12381G1PrivateKey
impl Send for Bls12381G1PrivateKey
impl Sync for Bls12381G1PrivateKey
impl Unpin for Bls12381G1PrivateKey
impl UnwindSafe for Bls12381G1PrivateKey
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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