From 4f169886f8ee1b70ae996512fc5fca1412732969 Mon Sep 17 00:00:00 2001 From: Janus Date: Tue, 13 Mar 2018 17:08:36 +0100 Subject: [PATCH] lightning: big-endian privkey encoding in DeriveNextKey --- lib/lightning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lightning.py b/lib/lightning.py index 2be5be8b..19588584 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) + m.keyDescriptor.pubKey = fetchPrivKey(None, 9000, globalIdx).secret.to_bytes(32, "big") globalIdx += 1 msg = json_format.MessageToJson(m)