aps_create_attribution_receipt
Generate a signed attribution receipt that records a claim against a third party's self-certifying DID, enabling verifiable citation only after the cited party grants consent.
Instructions
Representation boundary: build a citer-signed AttributionReceipt attributing a claim to a third-party principal. Each party is named by a self-certifying DID that commits to the key beside it, so a receipt naming a party by a bare public key or by a did:web style identifier will not verify. The receipt is not yet valid: the cited principal must sign consent via aps_sign_attribution_consent before checkArtifactCitations accepts it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| citer | Yes | Self-certifying DID of the citing agent, from the SDK createDID (multibase did:aps). A bare public key or the hex did:aps form from createDIDHex does not self-certify and will not verify. | |
| ttl_ms | No | Receipt TTL in ms (default: 24h) | |
| gateway_id | No | Gateway id for timestamping (default: 'mcp') | |
| binding_context | Yes | ID of the binding artifact this citation is scoped to | |
| cited_principal | Yes | Self-certifying DID of the cited principal, from the SDK createDID (multibase did:aps). It must commit to cited_principal_public_key. | |
| citation_content | Yes | The quoted or paraphrased claim | |
| citer_public_key | Yes | Hex public key of citer | |
| citer_private_key | Yes | Hex private key of citer | |
| cited_principal_public_key | Yes | Hex public key of cited principal |