Struct duniter_keys::ed25519::KeyPairGenerator [] [src]

pub struct KeyPairGenerator { /* fields omitted */ }

Keypair generator with given parameters for scrypt keypair function.

Methods

impl KeyPairGenerator
[src]

[src]

Create a KeyPairGenerator with default arguments (log_n: 12, r: 16, p: 1)

[src]

Create a KeyPairGenerator with given arguments.

Arguments

  • log_n - The log2 of the Scrypt parameter N
  • r - The Scrypt parameter r
  • p - The Scrypt parameter p

[src]

Create a keypair based on a given password and salt.

The PublicKey will be able to verify messaged signed with the PrivateKey.

Trait Implementations

impl Debug for KeyPairGenerator
[src]

[src]

Formats the value using the given formatter.

impl Copy for KeyPairGenerator
[src]

impl Clone for KeyPairGenerator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more