View Source Nostr.Event.DirectMessage (Nostr Lib v0.1.1) (event) (nip04)

Direct encrypted message

Defined in NIP 04 https://github.com/nostr-protocol/nips/blob/master/04.md

Summary

Types

@type t() :: %Nostr.Event.DirectMessage{
  cipher_text: binary(),
  event: Nostr.Event.t(),
  from: <<_::32, _::_*8>>,
  plain_text: :not_decrypted | String.t(),
  to: <<_::32, _::_*8>>
}

Functions

@spec parse(event :: Nostr.Event.t()) :: t()