lightning: ScalarMult: use 32-byte hash to construct priv-key and derive 33-byte pubkey
This commit is contained in:
parent
4f169886f8
commit
75a0a725c4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user