From 8041ec484f470566bf0213876aaeab465b767829 Mon Sep 17 00:00:00 2001 From: Janus Date: Wed, 14 Mar 2018 12:24:10 +0100 Subject: [PATCH] lightning: fix DeriveKey pubkey --- lib/lightning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lightning.py b/lib/lightning.py index 0ed7ae66..ef7c78d1 100644 --- a/lib/lightning.py +++ b/lib/lightning.py @@ -879,7 +879,7 @@ def DeriveNextKey(json): #m.keyDescriptor.keyLocator.family = #m.keyDescriptor.keyLocator.index = - m.keyDescriptor.pubKey = fetchPrivKey(None, 9000, globalIdx).secret.to_bytes(32, "big") + m.keyDescriptor.pubKey = fetchPrivKey(None, 9000, globalIdx).get_verifying_key().to_string() globalIdx += 1 msg = json_format.MessageToJson(m)