Struct diem_keygen::KeyGen [−][src]
pub struct KeyGen(_);Expand description
Ed25519 key generator.
Implementations
Constructs a key generator with a random seed. The random seed itself is generated using the OS rng.
Generate an Ed25519 key pair.
pub fn generate_credentials_for_account_creation(
&mut self
) -> (Ed25519PrivateKey, Vec<u8>, AccountAddress)
pub fn generate_credentials_for_account_creation(
&mut self
) -> (Ed25519PrivateKey, Vec<u8>, AccountAddress)
Same as generate_keypair, but returns a tuple of (private_key, auth_key_prefix, account_addr) instead.