Skip to main content

decrypt_gift_wrap

Function decrypt_gift_wrap 

Source
pub async fn decrypt_gift_wrap(
    client: &Client,
    event: &Event,
) -> Result<UnsignedEvent>
👎Deprecated:

Use decrypt_gift_wrap_single_layer for ContextVM compatibility

Expand description

Decrypt a full NIP-59 gift-wrapped event using the Client.

Deprecated: Use decrypt_gift_wrap_single_layer for ContextVM interop. This expects the full NIP-59 two-layer scheme (gift wrap → seal → rumor).