lightning: fix DeriveKey pubkey

This commit is contained in:
Janus 2018-03-14 12:24:10 +01:00
parent 75a0a725c4
commit 8041ec484f

View File

@ -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)