Function exonum::crypto::gen_keypair_from_seed [] [src]

pub fn gen_keypair_from_seed(seed: &Seed) -> (PublicKey, SecretKey)

Computes a secret key and a corresponding public key from a Seed.

Examples

use exonum::crypto::{self, Seed};

let (public_key, secret_key) = crypto::gen_keypair_from_seed(&Seed::new([1; 32]));