Nostr.Event.BadgeAward (Nostr Lib v0.2.1) (event) (nip58)

View Source

Badge award

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

Summary

Functions

Parses a kind 8 event into a BadgeAward struct, extracting badge and awardees.

Types

t()

@type t() :: %Nostr.Event.BadgeAward{
  awardees: [<<_::32, _::_*8>>],
  badge: <<_::32, _::_*8>>,
  event: Nostr.Event.t()
}

Functions

parse(event)

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

Parses a kind 8 event into a BadgeAward struct, extracting badge and awardees.