Struct lamport::PrivateKey [] [src]

pub struct PrivateKey<T: Digest + Clone> { /* fields omitted */ }

A one-time signing private key

Methods

impl<T: Digest + Clone> PrivateKey<T>
[src]

Generates a new random one-time signing key. This method can panic if OS RNG fails

Returns the public key associated with this private key

Signs the data with the private key and returns the result if successful. If unsuccesful, an explanation string is returned

Trait Implementations

impl<T: Digest + Clone> Drop for PrivateKey<T>
[src]

A method called when the value goes out of scope. Read more

impl<T: Digest + Clone> PartialEq for PrivateKey<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.