Function edcert::ed25519::generate_keypair
[−]
[src]
pub fn generate_keypair() -> ([u8; 32], [u8; 64])
This method generates a random ed25519 keypair from a cryptographically secure source
(on unix this is /dev/urandom). Returns (public_key
, private_key
).