Skip to main content

wrap_giftwrap_chat_message

Function wrap_giftwrap_chat_message 

Source
pub async fn wrap_giftwrap_chat_message(
    sender_trade_keys: &Keys,
    shared_pubkey: &PublicKey,
    message: &str,
) -> Result<Event, MostroError>
Expand description

Legacy gift-wrap producer (kind 1059, ephemeral outer key).

Prefer wrap_chat_message. Kept for dual-read transition tests and any client that still needs to emit the superseded envelope during migration.

Outer created_at is blurred with [tweaked_timestamp] (NIP-59-compatible 0..2 day offset); signing uses EventBuilder::finalize (nostr 0.45).