massalabs / massa

The Decentralized and Scaled Blockchain
https://massa.net
5.56k stars 713 forks source link

Reduce address length to 20 bytes #2647

Closed sebastien-forestier closed 2 years ago

sebastien-forestier commented 2 years ago

Using the opportunity of the change in address format with Blake3 hashing algorithm, we could now use 20 bytes addresses as Bitcoin, Ethereum etc, instead of 32 bytes, to improve performance, reduce bandwidth, ledger size, RAM etc.

Notes:

damip commented 2 years ago

I have mixed feelings about this one:

That being said, we could use that in some settings and not others, eg. in caching and some transmissions but not in the ledger due to known security issues

sebastien-forestier commented 2 years ago

No bitcoin hashes haven't been broken otherwise we would not use Bitcoin :) it's only broken keys that have been broken

sebastien-forestier commented 2 years ago

it will only reduce bandwidth. Full hashes will still need to be computed before truncation, so no impact on CPU

No impact when hashing but less data transfered and less data stored also means less cpu used

damip commented 2 years ago

Ok I get your point.

The CPU impact should be minimal, but bandwidth could be slightly reduced. We could attempt this indeed but I'm scared of the outcomes.

damip commented 2 years ago
sebastien-forestier commented 2 years ago

Ok so let's do this for address length only, and put a note somewhere that there can be several public keys for a given address (in case an attacker wants to burn €1 tn)

damip commented 2 years ago

Let's do it for operation announcements only for now. Address-related gains would me marginal, especially given the danger involved.

damip commented 2 years ago

closing for now