Struct lamport_sigs::PrivateKey [] [src]

pub struct PrivateKey { /* fields omitted */ }

A one-time signing private key

Methods

impl PrivateKey
[src]

[src]

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

[src]

Returns the public key associated with this private key

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PrivateKey
[src]

[src]

Formats the value using the given formatter.

impl Drop for PrivateKey
[src]

[src]

Executes the destructor for this type. Read more

impl PartialEq for PrivateKey
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for PrivateKey
[src]

impl PartialOrd for PrivateKey
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for PrivateKey
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more