Nostr.Event.Replaceable (Nostr Lib v0.2.1) (event) (nip16)

View Source

Replaceable event

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

Summary

Functions

Parses a kind 10000-19999 event into a Replaceable struct (newer replaces older per pubkey+kind).

Types

t()

@type t() :: %Nostr.Event.Replaceable{event: Nostr.Event.t(), user: <<_::32, _::_*8>>}

Functions

parse(event)

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

Parses a kind 10000-19999 event into a Replaceable struct (newer replaces older per pubkey+kind).