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
@type t() :: %Nostr.Event.BadgeAward{ awardees: [<<_::32, _::_*8>>], badge: <<_::32, _::_*8>>, event: Nostr.Event.t() }
Functions
@spec parse(event :: Nostr.Event.t()) :: t()
Parses a kind 8 event into a BadgeAward struct, extracting badge and awardees.