register_retention_policy_onchain
Registra on-chain (dpo2u-solana compliance-registry) uma política de retenção previamente gerada. Âncora CID Lighthouse + content hash como Attestation PDA. Usa create_attestation (sem ZK) porque retention policies são públicas.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cid": "<cid>",
"contentHash": "<contentHash>"
},
"name": "register_retention_policy_onchain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | CID Lighthouse da policy | |
| cluster | No | Target cluster | |
| schemaId | No | Schema pubkey base58 (opcional) | |
| expiresAt | No | Unix timestamp de expiração (opcional) | |
| contentHash | Yes | sha256 hex de 64 chars (32 bytes) | |
| subjectPubkey | No | Company pubkey base58 (default: issuer) |