Skip to main content

Module encryption

Module encryption 

Source
Expand description

Encryption and gift wrapping for ContextVM.

Provides NIP-44 encryption/decryption and NIP-59 gift wrapping. The actual gift wrapping is done via nostr-sdk’s Client for full NIP-59 compliance.

Functions§

decrypt_gift_wrapDeprecated
Decrypt a full NIP-59 gift-wrapped event using the Client.
decrypt_gift_wrap_single_layer
decrypt_nip44
Decrypt a message using NIP-44.
encrypt_nip44
Encrypt a message using NIP-44.
gift_wrapDeprecated
Create and publish a full NIP-59 gift-wrapped event.
gift_wrap_single_layer
gift_wrap_single_layer_with_kind
Create a single-layer NIP-44 gift wrap using the provided outer event kind.