register_key_release
Free. Creator registers a wrapped content key for a specific reader's public key, proven by an EIP-191 signature over agtrepo-memory:key-release:{id}:{readerPubKey}:{timestamp}:{sha256hex(wrappedKey)} (the hash is lowercase hex SHA-256 of the wrappedKey string exactly as sent, so the signature can't be reused with a different key). {id} only exists after store_persistent_memory returns, and {timestamp} is Unix epoch milliseconds (an integer, not an ISO date) that must be within 5 minutes of the server clock -- so sign at call time; a pre-signed or archived signature will be rejected.
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": {
"id": "<id>",
"readerPubKey": "<readerPubKey>",
"wrappedKey": "<wrappedKey>",
"signature": "<signature>",
"timestamp": "<timestamp>"
},
"name": "register_key_release"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| signature | Yes | ||
| timestamp | Yes | Unix epoch milliseconds, within 5 minutes of server time; the exact value that was signed | |
| wrappedKey | Yes | ||
| readerPubKey | Yes |