decryptNip04
Decrypt NIP-04 ciphertext messages from a specific sender by providing your private key and the sender's public key, restoring the original plaintext.
Instructions
Decrypt NIP-04 ciphertext
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": {
"ciphertext": "<ciphertext>",
"senderPubkey": "<senderPubkey>"
},
"name": "decryptNip04"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ciphertext | Yes | NIP-04 encrypted text | |
| senderPubkey | Yes | Sender pubkey (hex or npub) | |
| privateKey | No | Private key (nsec or hex). Optional when NOSTR_BUNKER_URI is configured. |