View Source Nex.Utils.DelegatedEvents (Nex v0.1.0-beta.1)

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.

Link to this function

valid_delegated_event?(event)

View Source
@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.

Link to this function

valid_delegated_event?(event, list)

View Source
@spec valid_delegated_event?(Nex.Messages.Event.t(), [String.t()]) :: boolean()