Documentation
¶
Index ¶
Constants ¶
View Source
const ( PayRequestTag = "payRequest" Endpoint = ".well-known/lnurlp" MinSendable = 1000 // mSat MaxSendable = 1_000_000_000 CommentAllowed = 2000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invoice ¶
type Invoice struct { *telegram.Invoice Comment string `json:"comment"` User *lnbits.User `json:"user"` CreatedAt time.Time `json:"created_at"` Paid bool `json:"paid"` PaidAt time.Time `json:"paid_at"` From string `json:"from"` Nip57Receipt nostr.Event `json:"nip57_receipt"` Nip57ReceiptRelays []string `json:"nip57_receipt_relays"` }
type LNURLPayParamsCustom ¶
type LNURLPayParamsCustom struct { lnurl.LNURLResponse Callback string `json:"callback"` Tag string `json:"tag"` MaxSendable int64 `json:"maxSendable"` MinSendable int64 `json:"minSendable"` EncodedMetadata string `json:"metadata"` CommentAllowed int64 `json:"commentAllowed"` PayerData *lnurl.PayerDataSpec `json:"payerData,omitempty"` AllowNostr bool `json:"allowsNostr,omitempty"` NostrPubKey string `json:"nostrPubkey,omitempty"` Metadata lnurl.Metadata `json:"-"` }
we have our custom LNURLPayParams response object here because we want to add nostr nip57 fields to it
type Lnurl ¶
type Lnurl struct { WebhookServer string // contains filtered or unexported fields }
func (Lnurl) DescriptionHash ¶
DescriptionHash is the SHA256 hash of the metadata
func (Lnurl) Nip57DescriptionHash ¶
DescriptionHash is the SHA256 hash of the metadata
type NostrEvent ¶
Click to show internal directories.
Click to hide internal directories.