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

Function attest_prov

atomic-canonical/src/prov.rs:197–199  ·  view source on GitHub ↗

Project + attest a turn's provenance: the PERSON's identity + keypair sign the named subgraph through the shared [`crate::proof::attest_value`] path (fills a top-level `attributedTo` from the signer's `did:atomic`, computes `contentHash`, attaches an `eddsa-jcs-2022` Data Integrity proof).

(input: &ProvActivityInput, identity: &Identity, keypair: &KeyPair)

Source from the content-addressed store, hash-verified

195/// top-level `attributedTo` from the signer's `did:atomic`, computes
196/// `contentHash`, attaches an `eddsa-jcs-2022` Data Integrity proof).
197pub fn attest_prov(input: &ProvActivityInput, identity: &Identity, keypair: &KeyPair) -> Value {
198 proof::attest_value(project(input), identity, keypair)
199}
200
201/// Verify a signed PROV subgraph against a public key — thin wrapper over
202/// [`crate::proof::verify_value`] (content-hash integrity + signature + the

Calls 2

attest_valueFunction · 0.85
projectFunction · 0.70