Check Address checksum in AddressUtils
gregzaitsev opened this issue · 7 comments
File:
src/utils/address.cpp
AddressUtils::getPublicKeyFromAddr method needs to throw ApplicationException in case if address checksum is wrong. The checksum is included in last 2 bytes of the address and verification process is described in the code comments in this method. Also, SS58 address format specification can be useful:
https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58)
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 60.0 DAI (60.0 USD @ $1.0/DAI) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $142,732.47 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work has been started.
These users each claimed they can complete the work by 11 months, 4 weeks from now.
Please review their action plans below:
1) bakaoh has been approved to start work.
I fixed it here https://github.com/bakaoh/polkadot_api_cpp/blob/issue7/src/utils/address.cpp, It's reversal of getAddrFromPublicKey
implement.
I also added a simple test case https://github.com/bakaoh/polkadot_api_cpp/blob/issue7/test/decode_public_key.cpp#L17
Learn more on the Gitcoin Issue Details page.
Thank you, @bakaoh! This is a very quick and good quality work! I am asking to approve your contribution request.
@bakatsar, would you mind to exchange contact information in case if have some collaboration opportunities? Please contract me at gz2019 at usetech.com
@bakaoh once you submit work glad to payout
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work for 60.0 DAI (60.0 USD @ $1.0/DAI) has been submitted by:
@Web3Foundation please take a look at the submitted work:
- Learn more on the Gitcoin Issue Details page
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $145,911.33 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
The funding of 60.0 DAI (60.0 USD @ $1.0/DAI) attached to this issue has been approved & issued to @bakaoh.
- Learn more on the Gitcoin Issue Details page
- Questions? Checkout Gitcoin Help or the Gitcoin Slack
- $145,200.32 more funded OSS Work available on the Gitcoin Issue Explorer