miden-protocol 0.15.0

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::SigningKey;

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

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