0
Old standard transactions format included 3 types: P2PUBKEY, P2PKH, P2SH. After Segwit soft fork, we have got 2 additional types: P2WPKH and P2WSH.
If we compare the cost of spending inputs (in bytes we write on HDD) for P2PUBKEY, P2PKH, and P2WPKH and we got next values:
- P2PUBKEY 33 bytes public key(we do not consider uncompressed keys) + signature 72 bytes = 105 bytes
- P2PKH 20 bytes public key hash + 33 bytes public key + 72 bytes signature = 125 bytes
- P2WPKH 20 bytes public key hash + 33 bytes public key + 72 bytes signature = 125 bytes
From this comparison, we can conclude that P2PUBKEY the best for reducing blockchain size. We can save about 19% of spending input size. I understand that P2PKH give more security in case we do not reuse the address. If we reuse address, there are no advantages to use P2PKH. We can observe the quite frequent use of addresses repeatedly. For a specific range of tasks, we do not need extra security like P2PKH. Why in Segwit transaction types we don't have the ability to use P2WPUBKEY as standard transaction? This type of transaction help to reduce blockchain size in case a user does not need/want use "no address reuse" security model? 20 bytes for each input this is a good opportunity to save the size of the blockchain.
Also, I read this thread https://bitcointalk.org/index.php?topic=6430.0, what is the reason why bitcoin core developers do not want to use public key recovery and save 33 bytes for each input? If the concerns are related to performance, we can observe how the ethereum works and reaches about 1M tx per day (this is like 1M inputs per day in Bitcoin).
To sync fully validating Ethereum node you just need SSD disk. The bottleneck is disk io, not computation and CPU. About denial service attack, transactions with invalid signature will not be relayed to other nodes, so this attack on a single node or group of nodes. Single node easily able block attacker nodes who sent invalid transactions. At this moment in bitcoin core implemented algorithm with a penalty and blocking misbehavior nodes. – bitaps.com – 2018-07-10T11:59:01.293
The banning function in Bitcoin Core is less of a punishment or more of a protective measure against legitimate nodes that are functioning. If an attacker really wanted to attack you, it is trivial for them to connect to you through many different IP addresses and circumvent the ban system. – Andrew Chow – 2018-07-10T20:58:21.700