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

Function did_attestation

atomic-core/src/change/attestation.rs:1875–1884  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1873 }
1874
1875 fn did_attestation() -> Attestation {
1876 Attestation::builder("sess-did", AttestAgent::new("a", "A", "v"))
1877 .operations_covered(vec!["turn 2 HEAD a -> b".into()])
1878 .add_change(Hash::of(b"change"))
1879 .turn_outcomes_root(Hash::of(b"outcomes"))
1880 .capture_root(Hash::of(b"captures"))
1881 .provenance_root(Hash::of(b"provenance"))
1882 .timestamp(1739290034)
1883 .build()
1884 }
1885
1886 fn sign_did(attest: &mut Attestation, seed: [u8; 32]) -> String {
1887 let signing = ed25519_dalek::SigningKey::from_bytes(&seed);

Calls 7

provenance_rootMethod · 0.80
capture_rootMethod · 0.80
turn_outcomes_rootMethod · 0.80
operations_coveredMethod · 0.80
buildMethod · 0.45
timestampMethod · 0.45
add_changeMethod · 0.45

Tested by

no test coverage detected