View Source Nostr.Event.Contacts (Nostr Lib v0.1.1) (event) (nip02)

Contact list

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

Summary

Types

@type contact() :: %{
  :user => <<_::32, _::_*8>>,
  optional(:relay) => URI.t(),
  optional(:petname) => String.t()
}
@type t() :: %Nostr.Event.Contacts{
  contacts: [contact()],
  event: Nostr.Event.t(),
  user: <<_::32, _::_*8>>
}

Functions

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