View Source Nex.Messages.Tag (Nex v0.1.0-beta.1)
Nostr Tag schema.
A Nostr Tag is simply a list of strings. This module defines the type and provides convinience functions for finding tags or conveting a tag to a map of parameters.
Link to this section Summary
Functions
Filters the list of tags by the given name.
Finds the first tag from the list by the given name.
Returns the first two elements of the tag as a map of name and value.
Link to this section Types
@type t() :: [String.t()]
Tag
Link to this section Functions
Filters the list of tags by the given name.
Finds the first tag from the list by the given name.
Returns the first two elements of the tag as a map of name and value.