lnwallet: add an instance of keychain.SecretKeyRing to the Config struct

This commit is contained in:
Olaoluwa Osuntokun 2018-02-17 15:18:35 -08:00
parent 22ee0a7576
commit fe12c908f8
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package lnwallet
import (
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/keychain"
"github.com/roasbeef/btcd/chaincfg"
)
@ -22,6 +23,12 @@ type Config struct {
// counterparty's broadcasting revoked commitment states.
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
// specific interaction is proxied to the internal wallet.
WalletController WalletController