myutil 7.3.0

Rust Util Collections
Documentation
1
2
3
4
5
6
7
8
use ed25519_zebra::{SigningKey, VerificationKey};
use rand::thread_rng;

pub(super) fn create_keypair() -> (SigningKey, VerificationKey) {
    let sk = SigningKey::new(thread_rng());
    let vk = VerificationKey::from(&sk);
    (sk, vk)
}