Skip to main content

Module encryption

Module encryption 

Source

Functions§

decrypt_body
BRC-78 decrypt an encrypted message body from a sender.
encrypt_body
BRC-78 encrypt a message body for a recipient.
generate_message_id
Generate a deterministic HMAC-based message ID for idempotency.
try_decrypt_message
Try to decrypt a message body, with graceful fallback for plaintext.