lightning: hex to bytes

This commit is contained in:
Janus 2018-03-14 16:23:34 +01:00
parent abc797828c
commit 567fba0edb

View File

@ -931,4 +931,4 @@ def ScalarMult(json):
return msg
def pubkFromECKEY(eckey):
return eckey.get_public_key(True) #compressed=True
return bytes(bytearray.fromhex(eckey.get_public_key(True))) #compressed=True