Versions in this module Expand all Collapse all v0 v0.15.10001 Jan 16, 2023 v0.15.101 Jan 16, 2023 Changes in this version + const DefaultFinalCLTVDelta + const DefaultInvoiceExpiry + var ErrBrokenTaggedField = errors.New("last tagged field is broken") + var ErrInvalidFieldLength = errors.New("invalid field length") + var ErrInvoiceTooLarge = errors.New("invoice is too large") + func Amount(milliSat lnwire.MilliSatoshi) func(*Invoice) + func CLTVExpiry(delta uint64) func(*Invoice) + func Description(description string) func(*Invoice) + func DescriptionHash(descriptionHash [32]byte) func(*Invoice) + func Destination(destination *btcec.PublicKey) func(*Invoice) + func Expiry(expiry time.Duration) func(*Invoice) + func FallbackAddr(fallbackAddr btcutil.Address) func(*Invoice) + func Features(features *lnwire.FeatureVector) func(*Invoice) + func PaymentAddr(addr [32]byte) func(*Invoice) + func RouteHint(routeHint []HopHint) func(*Invoice) + type HopHint struct + CLTVExpiryDelta uint16 + ChannelID uint64 + FeeBaseMSat uint32 + FeeProportionalMillionths uint32 + NodeID *btcec.PublicKey + func (h HopHint) Copy() HopHint + type Invoice struct + Description *string + DescriptionHash *[32]byte + Destination *btcec.PublicKey + FallbackAddr btcutil.Address + Features *lnwire.FeatureVector + MilliSat *lnwire.MilliSatoshi + Net *chaincfg.Params + PaymentAddr *[32]byte + PaymentHash *[32]byte + RouteHints [][]HopHint + Timestamp time.Time + func Decode(invoice string, net *chaincfg.Params) (*Invoice, error) + func NewInvoice(net *chaincfg.Params, paymentHash [32]byte, timestamp time.Time, ...) (*Invoice, error) + func (invoice *Invoice) Expiry() time.Duration + func (invoice *Invoice) MinFinalCLTVExpiry() uint64 + type MessageSigner struct + SignCompact func(hash []byte) ([]byte, error)