Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Signatures with Web3py #1

Open
davinci26 opened this issue Jun 12, 2018 · 0 comments
Open

Generate Signatures with Web3py #1

davinci26 opened this issue Jun 12, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@davinci26
Copy link
Owner

A code snippet that does not work:

## Signature Testing ###
msg_hash = Web3.sha3(text= 'password')
private_key = b"\xb2\\}\xb3\x1f\xee\xd9\x12''\xbf\t9\xdcv\x9a\x96VK-\xe4\xc4rm\x03[6\xec\xf1\xe5\xb3d"
print(m_web3.eth.account)
attribDict = m_web3.eth.account.signHash(msg_hash, private_key = private_key)
attribDict = m_web3.eth.account.signHash(msg_hash)
msgHash = Web3.toHex(attribDict['messageHash'])
v = attribDict['v']
r =  Web3.toHex(attribDict['r'])
s =  Web3.toHex(attribDict['s'])
print(attribDict)

Need to fix that

@davinci26 davinci26 added the bug Something isn't working label Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant