[][src]Struct wots::SecKey

pub struct SecKey { /* fields omitted */ }

WOTS+ private key that hasn't expanded yet. It contain a seed to derive and an address for the key pair

Methods

impl SecKey[src]

pub fn new() -> Self[src]

pub fn set_seed(&mut self, seed: Seed)[src]

pub fn set_address(&mut self, address: Adrs)[src]

pub fn sign(&self, pub_seed: &Seed, msg: &[u8; 32]) -> Signature[src]

Takes a n-byte message and the 32-byte seed for the private key to compute and return a signature.

Trait Implementations

impl Clone for SecKey[src]

impl Default for SecKey[src]

Auto Trait Implementations

impl Unpin for SecKey

impl Send for SecKey

impl Sync for SecKey

impl UnwindSafe for SecKey

impl RefUnwindSafe for SecKey

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self