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

Function test_seed

atomic-core/src/change/attestation.rs:1869–1873  ·  view source on GitHub ↗

Deterministic Ed25519 seed for tests.

(byte: u8)

Source from the content-addressed store, hash-verified

1867
1868 /// Deterministic Ed25519 seed for tests.
1869 fn test_seed(byte: u8) -> [u8; 32] {
1870 let mut seed = [byte; 32];
1871 seed[0] = byte.wrapping_mul(7);
1872 seed
1873 }
1874
1875 fn did_attestation() -> Attestation {
1876 Attestation::builder("sess-did", AttestAgent::new("a", "A", "v"))

Calls

no outgoing calls

Tested by

no test coverage detected