chains: upgrade the keyRing instance in chainControl to a SecretKeyRing

In this commit, we upgrade regular KeyRing instance to a SecretKeyRing
instance as we need the upgraded instance in order to recover SCB's. Due
to the fact that we don't currently store the full KeyLocator for the
key used to derive a shachain root for each channel, we instead need to
obtain the private key vanilla to re-derive this value.
This commit is contained in:
Olaoluwa Osuntokun 2018-12-09 19:57:08 -08:00
parent abfbdf6aec
commit 1a488f4aef

@ -108,7 +108,7 @@ type chainControl struct {
signer input.Signer
keyRing keychain.KeyRing
keyRing keychain.SecretKeyRing
wc lnwallet.WalletController