Polkadot-Blockchain-Academy / Academy-PoW

PoW blockchain node to gain hands-on experience starting a real network together
The Unlicense
21 stars 42 forks source link

Add Ethereum checksum casing support #36

Closed notlesh closed 7 months ago

notlesh commented 1 year ago

Ethereum addresses can be expressed with a built-in checksum that uses mixed capital- and non-capital-case hex letters to provide a checksum of the address. This is meant to help prevent typos which might lead to lost funds.

Some code was copied from Moonbeam along with a TODO mentioning that this should be added, context:

https://github.com/Polkadot-Blockchain-Academy/Academy-PoW/pull/26#discussion_r1251296962

More details on the technique: https://coincodex.com/article/2078/ethereum-address-checksum-explained/

This issue is a task to include support for this, and could be a great learning exercise for a curious mind. Bonus points: this could also potentially be added to Moonbeam itself, although I would suggest starting with a solution for this repo :)

JoshOrndorff commented 7 months ago

This issue is relevant to the code on the UCB tag.

But the evm contracts features will be removed for the next wave, so I'll close this for now.