[][src]Struct wots::PubKey

pub struct PubKey { /* fields omitted */ }

WOTS+ public key

Methods

impl PubKey[src]

pub fn from_seckey(seckey: &SecKey, pub_seed: &Seed) -> Self[src]

WOTS public key generation. Takes a 32 byte seed for the private key, expands it to a full WOTS private key and computes the corresponding public key. It requires the private key and a pub_seed (used to generate bitmasks and hash keys).

pub fn from_signature(sig: &Signature, msg: &[u8; 32]) -> Self[src]

Trait Implementations

impl Clone for PubKey[src]

Auto Trait Implementations

impl Unpin for PubKey

impl Send for PubKey

impl Sync for PubKey

impl UnwindSafe for PubKey

impl RefUnwindSafe for PubKey

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