package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev

# Functions

AMPDecoder reads the AMP record from the provided io.Reader.
AMPEncoder writes the AMP record to the provided io.Writer.
DecodeBlindedRouteData decodes the data provided within a blinded route.
EncodeBlindedRouteData encodes the blinded route data provided.
MPPDecoder reads the MPP record to the provided io.Reader.
MPPEncoder writes the MPP record to the provided io.Writer.
NewAMP generate a new AMP record with the given root_share, set_id, and child_index.
NewAmtToFwdRecord creates a tlv.Record that encodes the amount_to_forward (type 2) for an onion payload.
NewBlindingPointRecord creates a tlv.Record that encodes the blinding_point (type 12) record for an onion payload.
NewDummyHopRouteData creates the data that's provided for any hop preceding a dummy hop.
NewEncryptedDataRecord creates a tlv.Record that encodes the encrypted_data (type 10) record for an onion payload.
NewFinalHopBlindedRouteData creates the data that's provided for the final hop in a blinded route.
NewLockTimeRecord creates a tlv.Record that encodes the outgoing_cltv_value (type 4) for an onion payload.
NewMetadataRecord creates a tlv.Record that encodes the metadata (type 10) for an onion payload.
NewMPP generates a new MPP record with the given total and payment address.
NewNextHopIDRecord creates a tlv.Record that encodes the short_channel_id (type 6) for an onion payload.
NewNonFinalBlindedRouteData creates the data that's provided for hops within a blinded route.
NewTotalAmtMsatBlinded creates a tlv.Record that encodes the total_amount_msat for the final an onion payload within a blinded route.

# Constants

AMPOnionType is the type used in the onion to reference the AMP fields: root_share, set_id, and child_index.
AmtOnionType is the type used in the onion to reference the amount to send to the next hop.
AverageDummyHopPayloadSize is the size of a standard blinded path dummy hop payload.
BlindingPointOnionType is the type used to include receiver provided ephemeral keys in the onion that are used in blinded paths.
CustomTypeStart is the start of the custom tlv type range as defined in BOLT 01.
EncryptedDataOnionType is the type used to include encrypted data provided by the receiver in the onion for use in blinded paths.
KeySendType is the custom record identifier for keysend preimages.
LockTimeTLV is the type used in the onion to reference the CLTV value that should be used for the next hop's HTLC.
MetadataOnionType is the type used in the onion for the payment metadata.
MPPOnionType is the type used in the onion to reference the MPP fields: total_amt and payment_addr.
NextHopOnionType is the type used in the onion to reference the ID of the next hop.
TotalAmtMsatBlindedType is the type used in the onion for the total amount field that is included in the final hop for blinded payments.

# Variables

MaxAmpPayLoadSize is an AMP Record which when serialized to a tlv record uses the maximum payload size.

# Structs

AMP is a record that encodes the fields necessary for atomic multi-path payments.
BlindedRouteData contains the information that is included in a blinded route encrypted data blob that is created by the recipient to provide forwarding information.
MPP is a record that encodes the fields necessary for multi-path payments.
PaymentConstraints is a set of restrictions on a payment.
PaymentRelayInfo describes the relay policy for a blinded path.

# Type aliases

CustomSet stores a set of custom key/value pairs.