Expand description
Raw-key NIP-44 v2 sealing — the single symmetric-encryption primitive of the
Community protocol. The channel key (message plane) and the server-root key
(metadata plane) are both raw 32-byte ConversationKeys; ciphertext is
base64’d for carriage in an event’s string content field.
Functions§
- encrypt_
with_ random_ nonce - NIP-44 v2 encrypt with a freshly generated nonce.
- open
- Inverse of
seal: base64-decode then NIP-44-decrypt under the raw key. A wrong key or tampered payload fails the MAC and returnsErr. - seal
- Encrypt
plaintextunder a raw 32-byte key, returning base64 for event content.