lnd.xprv/invoices/interface.go

18 lines
452 B
Go
Raw Normal View History

package invoices
import (
"github.com/lightningnetwork/lnd/record"
)
// Payload abstracts access to any additional fields provided in the final hop's
// TLV onion payload.
type Payload interface {
// MultiPath returns the record corresponding the option_mpp parsed from
// the onion payload.
MultiPath() *record.MPP
// CustomRecords returns the custom tlv type records that were parsed
// from the payload.
2019-12-12 02:01:55 +03:00
CustomRecords() record.CustomSet
}