You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill this section in if you know how this could or should be fixed.
Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or
have a feature request, you're in the right place. If you have implementation or usage questions,
please refer to our documentation and/or join the conversation
on discord.
The text was updated successfully, but these errors were encountered:
pip freeze
outputWhat was wrong?
When I run Generate Signature, I get the message "AttributeError: SECP256K1_CONTEXT_SIGN"
Please include any of the following that are applicable:
code that generates an error:
private_key = keys
address = add
rqc = "https://rpc.sepolia.org"
w3 = Web3(HTTPProvider(rqc))
msg = Web3.solidity_keccak(['address','uint256'],[address,0])
print(f"Mes:{msg.hex()}")
message = encode_defunct(hexstr=msg.hex())
signed_message = w3.eth.account.sign_message(message,private_key=private_key)
print(f"sig:{signed_message['signature'].hex()}")
Screenshot of the error message
![image](https://private-user-images.githubusercontent.com/126438727/301062001-31e86f4b-0c52-4083-a0c8-b490602ea019.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzkwNjgsIm5iZiI6MTcyMjEzODc2OCwicGF0aCI6Ii8xMjY0Mzg3MjcvMzAxMDYyMDAxLTMxZTg2ZjRiLTBjNTItNDA4My1hMGM4LWI0OTA2MDJlYTAxOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyOFQwMzUyNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYmVkNDE2OWRkMGEzOGUxNTQ3ZjVkY2Y4NmVkNzFmZjE2MWE0ZGQ2YWMwMWMzMzllMDg5MmUxZjBlM2I2MDE5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.C4RhWQHXP2CvjtVhvLNK6TUqFx54HuLdPXIWqjqDMQo)
How can it be fixed?
Fill this section in if you know how this could or should be fixed.
Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or
have a feature request, you're in the right place. If you have implementation or usage questions,
please refer to our documentation and/or join the conversation
on discord.
The text was updated successfully, but these errors were encountered: