Use keyapi for address generation in import key in dictkeystore

This commit is contained in:
nolash
2021-01-09 20:25:47 +01:00
parent 0afacff6c6
commit e1e585776d
11 changed files with 93 additions and 7 deletions

View File

@@ -120,7 +120,8 @@ def eth_sign(p):
message_type = type(p[1]).__name__
if message_type != 'str':
raise ValueError('invalid message format, must be {}, not {}'.format(message_type))
return signer.signEthereumMessage(p[0], p[1].encode('utf-8'))
z = signer.signEthereumMessage(p[0], p[1][2:])
return str(z)
methods = {