package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev
# Functions
NewRouteFromHops creates a new Route structure from the minimally required information to perform the payment.
NewVertex returns a new Vertex given a public key.
NewVertexFromBytes returns a new Vertex based on a serialized pubkey in a byte slice.
NewVertexFromStr returns a new Vertex given its hex-encoded string format.
# Constants
VertexSize is the size of the array to store a vertex.
# Variables
ErrAMPMissingMPP is returned when the caller tries to attach an AMP record but no MPP record is presented for the final hop.
ErrIntermediateMPPHop is returned when a hop tries to deliver an MPP record to an intermediate hop, only final hops can receive MPP records.
ErrMaxRouteHopsExceeded is returned when a caller attempts to construct a new sphinx packet, but provides too many hops.
ErrMissingField is returned if a required TLV is missing.
ErrNoRouteHopsProvided is returned when a caller attempts to construct a new sphinx packet, but provides an empty set of hops for each route.
ErrUnexpectedField is returned if a tlv field is included when it should not be.
# Type aliases
Vertex is a simple alias for the serialization of a compressed Bitcoin public key.