encryptNip44
Encrypt text using NIP-44 to send private messages on Nostr. Provide recipient's public key and your private key to produce an encrypted payload only the recipient can decrypt.
Instructions
Encrypt text with NIP-44
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": {
"plaintext": "<plaintext>",
"recipientPubkey": "<recipientPubkey>"
},
"name": "encryptNip44"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plaintext | Yes | Text to encrypt | |
| recipientPubkey | Yes | Recipient pubkey (hex or npub) | |
| privateKey | No | Private key (nsec or hex). Optional when NOSTR_BUNKER_URI is configured. |