Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checksummed addresses #17

Open
stefanofornari opened this issue May 30, 2022 · 0 comments
Open

Checksummed addresses #17

stefanofornari opened this issue May 30, 2022 · 0 comments
Labels
User story A user story

Comments

@stefanofornari
Copy link
Owner

stefanofornari commented May 30, 2022

AS A user
I WANT to see checksummed addressed
SO THAT I can use them more securely and prevent mistakes

see:

For reference:

The checksum works like so:

    lowercase address and remove 0x prefix
    sha3 hash result from #1
    change nth letter of address according to the nth letter of the hash:

    0,1,2,3,4,5,6,7 → Lowercase
    8, 9, a, b, c, d, e, f → Uppercase

So, you sha3 hash the address, and look at each Nth character of the sha result. If it's 7 or below, the Nth character in the address is lowercase. If it is 8 or above, that character is uppercase.

(Brought from an old Ethereum forum whose [link is now broken](https://forum.ethereum.org/discussion/9220/eth-address-upper-and-lower-characters-does-not-matter).)
@stefanofornari stefanofornari added the User story A user story label May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User story A user story
Projects
None yet
Development

No branches or pull requests

1 participant