View Source Nex.Utils.DelegatedEvents (Nex v0.1.0)
Utility function to assist finding and verifying delegation tags used in NIP-26.
Link to this section Summary
Functions
Returns true if the Event contains a delegation tag.
Returns true if the Event contains a valid delegation tag.
Link to this section Functions
@spec delegated_event?(Nex.Messages.Event.t()) :: boolean()
Returns true if the Event contains a delegation tag.
@spec valid_delegated_event?(Nex.Messages.Event.t()) :: boolean()
Returns true if the Event contains a valid delegation tag.
A delegation tag is valid if it's conditions match the event it is contained in, and the signature verifies.
@spec valid_delegated_event?(Nex.Messages.Event.t(), [String.t()]) :: boolean()