package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev
# Functions
Validate given the specified context, this function validates that the alleged channel is well formed, and spendable (if the optional CommitCtx is specified).
# Variables
ErrInvalidOutPoint is returned when the ChanLocator is unable to find the target outpoint.
ErrInvalidSize is returned when the alleged funding transaction output has the wrong size (channel capacity).
ErrWrongPkScript is returned when the alleged funding transaction is found to have an incorrect pkSript.
# Structs
CommitmentContext is optional validation context that can be passed into the main Validate for self-owned channel.
Context is the main validation contxet.
ErrScriptValidateError is returned when Script VM validation fails for an alleged channel output.
OutPointChanLocator is an implementation of the ChanLocator that can be used when one already knows the expected chan point.
ShortChanIDChanLocator is an implementation of the ChanLocator that can be used when one only knows the short channel ID of a channel.
# Interfaces
ChanLocator abstracts away obtaining the output that created the channel, as well as validating its existence given the funding transaction.