From fe12c908f830e43cd053f6b3e6d29eae2823a067 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 17 Feb 2018 15:18:35 -0800 Subject: [PATCH] lnwallet: add an instance of keychain.SecretKeyRing to the Config struct --- lnwallet/config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lnwallet/config.go b/lnwallet/config.go index 6dd69033..8570f5fe 100644 --- a/lnwallet/config.go +++ b/lnwallet/config.go @@ -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