package
0.15.5-beta
Repository: https://github.com/monasuite/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.
ErrNoRouteHopsProvided is returned when a caller attempts to construct a new sphinx packet, but provides an empty set of hops for each route.

# Structs

Hop represents an intermediate or final node of the route.
Route represents a path through the channel graph which runs over one or more channels in succession.

# Type aliases

Vertex is a simple alias for the serialization of a compressed Bitcoin public key.