View Source Nostr.Event.Note (Nostr Lib v0.1.1) (event) (nip01)

Text note

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

Summary

Functions

Create new Note Nostr event

Types

@type t() :: %Nostr.Event.Note{
  author: <<_::32, _::_*8>>,
  event: Nostr.Event.t(),
  note: String.t(),
  reply_to: [<<_::32, _::_*8>>],
  reply_to_authors: [<<_::32, _::_*8>>]
}

Functions

Link to this function

create(note, opts \\ [])

View Source
@spec create(note :: String.t(), opts :: Keyword.t()) :: t()

Create new Note Nostr event

Arguments:

  • note textual note used as content
  • opts other optional event arguments (pubkey, created_at, tags)
@spec parse(event :: Nostr.Event.t()) :: t()