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

Function attest_prov

atomic-canonical/src/prov.rs:196–198  ·  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

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

Calls 2

attest_valueFunction · 0.85
projectFunction · 0.85