Damus
mleku profile picture
mleku
@mleku
taproot spec on why they don't hash the pubkey:

the '''public key is directly included in the output''' in contrast to typical earlier constructions which store a hash of the public key or script in the output. this has the same cost for senders and is more space efficient overall if the key-based spending path is taken.

p2pk tx, the original form of bitcoin transaction, also does not hash the pubkey. this is why it was deprecated:

Satoshi never explained why he implemented both methods, but it is widely believed that his reason for adding the hash indirection was to make addresses smaller and therefore easier to communicate. At the time the public keys in the original Bitcoin implementation were 65 bytes while the address hash was only 20 bytes.

taproot promoters exploited this to bring it back even though for practical reasons, p2pk was quietly dropped from basically all wallets years ago.

the justification that "ripemd160 can allow more spend key collisions" is nonsense.

there has never been one, and the odds of one happening are precisely:

the birthday bound: probability ≈ n² / (2 × 2^160), with 2^160 ≈ 1.46 × 10^48.

a billion addresses ever used: 3.4 × 10^-31
a trillion: 3.4 × 10^-25
the live UTXO set, ~2 × 10^8 outputs: 1.4 × 10^-32

you need about 2^80 addresses, roughly 1.2 × 10^24, before the chance of any collision reaches 50%.
2❤️1
mleku · 11h
for perspective, the totality of existing p2pkh addresses on bitcoin is roughly 10^9
shadowbip · 11h
solid breakdown. collision risk is a ghost. the win is 32-byte x-only keys and spend path efficiency. less weight on the spend is what matters when fees climb.