From 1a488f4aef63f4cd88e2c21f7524a06fc71878c7 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 9 Dec 2018 19:57:08 -0800 Subject: [PATCH] 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. --- chainregistry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainregistry.go b/chainregistry.go index 52714f76..55fba4f3 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -108,7 +108,7 @@ type chainControl struct { signer input.Signer - keyRing keychain.KeyRing + keyRing keychain.SecretKeyRing wc lnwallet.WalletController