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

Function test_keypair

atomic-repository/src/git_binding/codec.rs:667–673  ·  view source on GitHub ↗

Deterministic test keypair (never the global identity store).

()

Source from the content-addressed store, hash-verified

665
666 /// Deterministic test keypair (never the global identity store).
667 fn test_keypair() -> KeyPair {
668 let mut secret = [0u8; 32];
669 for (index, byte) in secret.iter_mut().enumerate() {
670 *byte = (index * 7 + 11) as u8;
671 }
672 KeyPair::from_secret_key(SecretKey::from_bytes(&secret))
673 }
674
675 fn oid(hex: &str) -> GitOid {
676 GitOid::from_hex(hex).expect("valid oid")

Callers 2

signed_sampleFunction · 0.70

Calls 1

iter_mutMethod · 0.80

Tested by

no test coverage detected