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

# Functions

MakeHash returns a new Hash from a byte slice.
MakeHashFromStr creates a Hash from a hex hash string.
MakePreimage returns a new Preimage from a bytes slice.
MakePreimageFromStr creates a Preimage from a hex preimage string.
MapDual applies the function argument to both the Local and Remote fields of the Dual[A] and returns a Dual[B] with that function applied.
Max returns the greater of the two inputs.
Min returns the lesser of the two inputs.

# Constants

HashSize of array used to store hashes.
Local is a ChannelParty constructor that is used to refer to the node that is running.
PreimageSize of array used to store preimagees.
Remote is a ChannelParty constructor that is used to refer to the node on the other end of the peer connection.

# Variables

ZeroHash is a predefined hash containing all zeroes.

# Structs

Dual represents a structure when we are tracking the same parameter for both the Local and Remote parties.

# Interfaces

Number defines a type constraint for numbers.

# Type aliases

ChannelParty is a type used to have an unambiguous description of which node is being referred to.
Hash is used in several of the lightning messages and common structures.
Preimage is used in several of the lightning messages and common structures.
VByte defines a unit to express the transaction size.
WeightUnit defines a unit to express the transaction size.