mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-18 21:02:42 +02:00
lnwallet: add an instance of keychain.SecretKeyRing to the Config struct
This commit is contained in:
parent
22ee0a7576
commit
fe12c908f8
@ -3,6 +3,7 @@ package lnwallet
|
|||||||
import (
|
import (
|
||||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||||
"github.com/lightningnetwork/lnd/channeldb"
|
"github.com/lightningnetwork/lnd/channeldb"
|
||||||
|
"github.com/lightningnetwork/lnd/keychain"
|
||||||
"github.com/roasbeef/btcd/chaincfg"
|
"github.com/roasbeef/btcd/chaincfg"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -22,6 +23,12 @@ type Config struct {
|
|||||||
// counterparty's broadcasting revoked commitment states.
|
// counterparty's broadcasting revoked commitment states.
|
||||||
Notifier chainntnfs.ChainNotifier
|
Notifier chainntnfs.ChainNotifier
|
||||||
|
|
||||||
|
// SecretKeyRing is used by the wallet during the funding workflow
|
||||||
|
// process to obtain keys to be used directly within contracts. Usage
|
||||||
|
// of this interface ensures that all key derivation is itself fully
|
||||||
|
// deterministic.
|
||||||
|
SecretKeyRing keychain.SecretKeyRing
|
||||||
|
|
||||||
// WalletController is the core wallet, all non Lightning Network
|
// WalletController is the core wallet, all non Lightning Network
|
||||||
// specific interaction is proxied to the internal wallet.
|
// specific interaction is proxied to the internal wallet.
|
||||||
WalletController WalletController
|
WalletController WalletController
|
||||||
|
Loading…
x
Reference in New Issue
Block a user