package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev
# Functions
CommitScriptToRemote derives the appropriate to_remote script based on the channel's commitment type.
CommitScriptToSelf constructs the public key script for the output on the commitment transaction paying to the "owner" of said commitment transaction.
DeriveCommitmentKeys generates a new commitment key set using the base points and commitment point.
MigrateRevocationLog migrates the old revocation logs into the newer format and deletes them once finished, with the deletion only happens once ALL the old logs have been migrates.
RHashDecoder is the customized decoder which skips decoding the empty hash.
RHashEncoder is the customized encoder which skips encoding the empty hash.
UseLogger uses a specified Logger to output package logging info.
# Constants
OutputIndexEmpty is used when the output index doesn't exist.
# Variables
ErrLogEntryNotFound is returned when we cannot find a log entry at the height requested in the revocation log.
ErrNoRevocationsFound is returned when revocation state for a particular channel cannot be found.
ErrOutputIndexTooBig is returned when the output index is greater than uint16.
# Structs
CommitmentKeyRing holds all derived keys needed to construct commitment and HTLC transactions.
HTLCEntry specifies the minimal info needed to be stored on disk for ALL the historical HTLCs, which is useful for constructing RevocationLog when a breach is detected.
MigrateRevLogConfigImpl implements the MigrationRevLogConfig interface.
RevocationLog stores the info needed to construct a breach retribution.
ScriptInfo holds a redeem script and hash.
# Interfaces
MigrateRevLogConfig is an interface that defines the config that should be passed to the MigrateRevocationLog function.