Register a signing key
register_keyRegister an upload signing key: an Ed25519 (OKP) or ES256 (EC P-256) public JWK, made on your own device, with proof of possession: the key's signature over "rooms-key-v2\n\n", using a challenge from get_key_challenge. The thumbprint is the RFC 7638 JWK thumbprint and becomes the key_id. The private key never leaves you. Scope: none, any signed-in caller. REST twin: POST /api/signing-keys. Errors: unauthorized, validation_error, signature_invalid, conflict.
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": {
"public_jwk": "<public_jwk>",
"challenge_id": "<challenge_id>",
"proof": "<proof>"
},
"name": "register_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proof | Yes | The key's signature over the statement, base64url. | |
| public_jwk | Yes | The public JWK: {"kty":"OKP","crv":"Ed25519","x":...} or {"kty":"EC","crv":"P-256","x":...,"y":...}. | |
| challenge_id | Yes | The challenge_id from get_key_challenge. |