Help fix this web3py signed message that will not validate in solidity.
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 776
- PR merge metrics
- No merged PRs in 30d
Description
The scope of this bounty is to help me understand why a signed message from web3py will not validate in [this PR](https://github.com/gitcoinco/web/pull/8478).
i am working on a project that will gitcoin to issue a NFT called sybilpassport that allows a user to carry their Gitcoin TrustBonus across web3-enabled sites. i've got a [WIP PR](https://github.com/gitcoinco/web/pull/8478) that partially implements this [here](https://github.com/gitcoinco/web/pull/8478).
im stuck tho! the signed message is created [here](https://github.com/gitcoinco/web/pull/8478/files#r587697299) with `web3==4.5.0` `w3.eth.account.signHash` , and validated [here](https://github.com/gitcoinco/NFTPOC/blob/master/contracts/GitcoinPassport.sol#L19-L22) in solidity. i can get the message to validate in the [js hardhat tests](https://github.com/gitcoinco/NFTPOC/blob/master/test/GitcoinPassport.js#L37-L38), so i know its working, i just can't figure out how to get web3py signed messages to work.
i will offer 0.4 ETH to anyone who can help me solve it.
rules
1. first come first serve.
2. a valid submission is a PR to https://github.com/gitcoinco/NFTPOC/ and/or to https://github.com/gitcoinco/web/pull/8478/
3. a valid submission must use `web3==4.5.0` and must sign a message in python backend that is validated by the solidity contract
Contributor guide
Assessment
This issue has not been assessed yet.