htlcswitch: add blinding point to sphinx iterator for decoding

This commit is contained in:
Carla Kirk-Cohen
2024-04-02 10:56:08 -04:00
parent da76d05fa5
commit 1e6fae37f7
4 changed files with 54 additions and 26 deletions

View File

@@ -4,7 +4,6 @@ import (
"context"
"io"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/wire"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/channeldb/models"
@@ -42,7 +41,7 @@ type OnionProcessor interface {
// ReconstructHopIterator attempts to decode a valid sphinx packet from
// the passed io.Reader instance.
ReconstructHopIterator(r io.Reader, rHash []byte,
blindingKey *btcec.PublicKey) (hop.Iterator, error)
blindingInfo hop.ReconstructBlindingInfo) (hop.Iterator, error)
}
// UtxoSweeper defines the sweep functions that contract court requires.