[][src]Struct blst::min_pk::SecretKey

pub struct SecretKey {
    pub value: blst_scalar,
}

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

impl Clone for SecretKey[src]

impl Debug for SecretKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.