Struct lamport_sigs::PrivateKey
[−]
[src]
pub struct PrivateKey { /* fields omitted */ }A one-time signing private key
Methods
impl PrivateKey[src]
fn new(algorithm: &'static Algorithm) -> PrivateKey
Generates a new random one-time signing key. This method can panic if OS RNG fails
fn public_key(&self) -> PublicKey
Returns the public key associated with this private key
fn sign(&mut self, data: &[u8]) -> Result<LamportSignatureData, &'static str>
Signs the data with the private key and returns the result if successful. If unsuccesful, an explanation string is returned
Trait Implementations
impl Clone for PrivateKey[src]
fn clone(&self) -> PrivateKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more