bitcoin-dev

Compressed Bitcoin Transactions

Compressed Bitcoin Transactions

Original Postby Jonas Schnelli

Posted on: January 18, 2024 09:24 UTC

The email touches upon the technical considerations regarding the compression of peer-to-peer (P2P) traffic in different versions and encryption scenarios.

It notes that while non-encrypted P2P traffic from version 1 could theoretically be compressed at a different layer of the Open Systems Interconnection (OSI) model, the encrypted traffic of version 2 is less likely to benefit from such an approach. Encrypted data typically appears pseudorandom, which reduces the effectiveness of traditional compression techniques applied outside the application layer.

The sender suggests evaluating a specific compression proposal designed for the application layer and compares its efficiency with LZO and gzip, which are standard compression methods applied to legacy transaction encoding. The suggested proposal could potentially offer significant space savings with reduced CPU usage. This would be especially beneficial for the efficient propagation of blocks within the network, which is a critical factor for performance.

Furthermore, the author references a prior discussion on GitHub about the merits of compressing blocks before transmission, providing a link to the pull request for further information: https://github.com/bitcoin/bitcoin/pull/6973. This implies that the topic has been an ongoing conversation in the community, and there's interest in exploring various methods to optimize network traffic related to block propagation.