NIP-26 Delegation Support.
Delegation
class wraps and validates NIP-26 delegation events (kind 30078):
author
: Merchant’s public key (bech32 or hex)conditions
: Raw query string defining delegation constraintssig
: Merchant’s signaturetag
: Complete delegation tag for re-attachmentcreated_at
: Delegation creation timestamp (Unix)expires_at
: Delegation expiry timestamp (Unix)allowed_kinds
: Set of event kinds that can be publishedNostrClient
can be initialized with a delegation event to automatically use it for publishing: