Why Nostr? What is Njump?
2023-03-03 11:41:16

thedavidcoen on Nostr: A curiosity about Ethereum and Bitcoin that not many people know about. By default, ...

A curiosity about Ethereum and Bitcoin that not many people know about.

By default, Ethereum does not have a checksum in its addresses.
What does this mean?
Try entering this address into your wallet:
0x5f927395213ee6b95de97bddcb1b2b1c0f16844f

Now enter the address 0x5f927395213ee6b95de97bddbc1b2b1c0f16844f

Your wallet will consider both addresses valid.
However, if you look closely, the second address has two letters switched.
Assuming the first address is yours, if someone sends funds to the second address, they obviously wouldn't reach your wallet.

To address this problem, the Checksum was introduced as an extra solution.

To generate a checksum, the Ethereum address is first converted into a lowercase and uppercase version. Then, the checksum is calculated by hashing the address and comparing it to the lowercase and uppercase version. If the hashed address matches the lowercase or uppercase version, the checksum is considered valid.

Therefore,
0x5f927395213ee6b95de97bddcb1b2b1c0f16844f becomes 0x5F927395213ee6b95dE97bDdCb1b2B1C0F16844F and if you try to invert some letters, the new address will be considered invalid, provided your wallet supports checksum!

In Bitcoin, this does not happen: there is no extra solution applied.
The reason is simple: addresses are already generated with a checksum.

So, if we take a random address 1L7s77cV9hCAGPXo2SNmLmQ3FaPstYJVcT and switch two letters, obtaining 1L7s77cV9hCAGPXo2SNmLmQ3FaPtsYJVcT, if we scan the address, our wallet will show us an error (invalid address).

Satoshi was foresighted!
Nakamoto 1: Buterin 0
Author Public Key
npub149mp2m0q8prpdys7x2lusv2vceraxwzr4ajf6tv3l24my3gtszxsncas0t