MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_keypair

Function test_keypair

atomic-core/src/change/signing.rs:155–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 use rand::RngCore;
154
155 fn test_keypair() -> (SigningKey, [u8; 32]) {
156 let mut seed = [0u8; 32];
157 rand::rngs::OsRng.fill_bytes(&mut seed);
158 let signing_key = SigningKey::from_bytes(&seed);
159 (signing_key, seed)
160 }
161
162 #[test]
163 fn sign_and_verify_roundtrip() {

Callers 4

tampered_hash_failsFunction · 0.70
wrong_key_failsFunction · 0.70
domain_separationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected