usetech-llc/polkadot_api_cpp

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.

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:

  1. @bakaoh

@Web3Foundation please take a look at the submitted work:


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.