Struct duniter_keys::ed25519::KeyPairGenerator
[−]
[src]
pub struct KeyPairGenerator { /* fields omitted */ }
Keypair generator with given parameters for scrypt
keypair function.
Methods
impl KeyPairGenerator
[src]
fn with_default_parameters() -> KeyPairGenerator
[src]
Create a KeyPairGenerator
with default arguments (log_n: 12, r: 16, p: 1)
fn with_parameters(log_n: u8, r: u32, p: u32) -> KeyPairGenerator
[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
fn generate(&self, password: &[u8], salt: &[u8]) -> (PrivateKey, PublicKey)
[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]
impl Copy for KeyPairGenerator
[src]
impl Clone for KeyPairGenerator
[src]
fn clone(&self) -> KeyPairGenerator
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more