Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + const OutputIndexEmpty + var ErrLogEntryNotFound = errors.New("log entry not found") + var ErrNoRevocationsFound = errors.New("no revocations found") + var ErrOutputIndexTooBig = errors.New("output index is over uint16") + func MigrateRevocationLog(db kvdb.Backend, cfg MigrateRevLogConfig) error + func RHashDecoder(r io.Reader, val interface{}, buf *[8]byte, l uint64) error + func RHashEncoder(w io.Writer, val interface{}, buf *[8]byte) error + func UseLogger(logger btclog.Logger) + type CommitmentKeyRing struct + CommitPoint *btcec.PublicKey + LocalCommitKeyTweak []byte + LocalHtlcKey *btcec.PublicKey + LocalHtlcKeyTweak []byte + RemoteHtlcKey *btcec.PublicKey + RevocationKey *btcec.PublicKey + ToLocalKey *btcec.PublicKey + ToRemoteKey *btcec.PublicKey + func DeriveCommitmentKeys(commitPoint *btcec.PublicKey, isOurCommit bool, chanType mig25.ChannelType, ...) *CommitmentKeyRing + type HTLCEntry struct + Amt btcutil.Amount + Incoming bool + OutputIndex uint16 + RHash [32]byte + RefundTimeout uint32 + func (h *HTLCEntry) RHashLen() uint64 + type MigrateRevLogConfig interface + GetNoAmountData func() bool + type MigrateRevLogConfigImpl struct + NoAmountData bool + func (c *MigrateRevLogConfigImpl) GetNoAmountData() bool + type RevocationLog struct + CommitTxHash [32]byte + HTLCEntries []*HTLCEntry + OurBalance *lnwire.MilliSatoshi + OurOutputIndex uint16 + TheirBalance *lnwire.MilliSatoshi + TheirOutputIndex uint16 + type ScriptInfo struct + PkScript []byte + WitnessScript []byte + func CommitScriptToRemote(chanType mig25.ChannelType, initiator bool, key *btcec.PublicKey, ...) (*ScriptInfo, uint32, error) + func CommitScriptToSelf(chanType mig25.ChannelType, initiator bool, ...) (*ScriptInfo, error)