[−][src]Struct blst::min_pk::SecretKey
Secret Key
Fields
value: blst_scalar
Implementations
impl SecretKey
[src]
pub fn key_gen(ikm: &[u8], key_info: &[u8]) -> Result<Self, BLST_ERROR>
[src]
Deterministically generate a secret key from key material
pub fn sk_to_pk(&self) -> PublicKey
[src]
pub fn sign(&self, msg: &[u8], dst: &[u8], aug: &[u8]) -> Signature
[src]
pub fn serialize(&self) -> [u8; 32]
[src]
pub fn deserialize(sk_in: &[u8]) -> Result<Self, BLST_ERROR>
[src]
pub fn to_bytes(&self) -> [u8; 32]
[src]
pub fn from_bytes(sk_in: &[u8]) -> Result<Self, BLST_ERROR>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,