lightning: ScalarMult: use 32-byte hash to construct priv-key and derive 33-byte pubkey

This commit is contained in:
Janus 2018-03-14 10:00:15 +01:00
parent 4f169886f8
commit 75a0a725c4

View File

@ -925,7 +925,7 @@ def ScalarMult(json):
m = rpc_pb2.ScalarMultResponse()
m.pubKey = c.digest()
m.pubKey = EC_KEY(c.digest()).get_verifying_key().to_string()
msg = json_format.MessageToJson(m)
return msg