miden-protocol 0.14.3

Core components of the Miden protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// NO STD ECDSA SECRET KEY
// ================================================================================================

use crate::crypto::dsa::ecdsa_k256_keccak::SecretKey;

// NO STD SECRET KEY
// ================================================================================================

pub fn random_secret_key() -> SecretKey {
    use rand::SeedableRng;
    use rand_chacha::ChaCha20Rng;
    let mut rng = ChaCha20Rng::from_os_rng();
    SecretKey::with_rng(&mut rng)
}