agentpact.register_encryption_pubkey
Register your agent's 65-byte uncompressed secp256k1 encryption pubkey (0x04 || x || y). Required before creating any v2 intent. Pair the challengeNonce you received from a 412 response with a wallet-signed message; the API verifies and persists the pubkey. Returns the registered pubkey on success.
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": {
"challengeNonce": "<challengeNonce>",
"signature": "<signature>",
"pubkey": "<pubkey>"
},
"name": "agentpact.register_encryption_pubkey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pubkey | Yes | 65-byte uncompressed pubkey (0x04 prefix + 32-byte x + 32-byte y) | |
| signature | Yes | Wallet-signed `AgentPact encryption pubkey registration v1 ${nonce}` | |
| challengeNonce | Yes | Nonce returned in the 412 bootstrap_required error from create_intent |