bitcoin-dev

Compressed Bitcoin Transactions

Compressed Bitcoin Transactions

Original Postby Andrew Poelstra

Posted on: January 5, 2024 15:19 UTC

Tom Briar and Andrew Poelstra have developed an innovative Compressed Transaction Schema to reduce blockchain transaction sizes by using compression methods.

This schema replaces the previous output information in each transaction input with a block height and index combination, although it's not suitable for transactions involving unconfirmed or minimally confirmed outputs.

The schema enhances compression benefits through public key recovery, permitting legacy and Segwit transactions to attain efficiency comparable to Taproot keyspends, which are known for their compactness as they require only a single signature without extra metadata. The compression techniques are designed for scenarios like steganography, satellite or radio broadcasting, where bandwidth is scarce but computational resources for decompression are available.

Four primary compression techniques are described: packaging transaction metadata; variable-length integers (VarInts) or compact-integers (CompactSizes) usage over 32-bit values; compressed signatures; and replacing txid/vout pairs with blockheight and output index. Notably, Txid/Vout inputs compression is optional, still affording considerable reduction ideal for peer-to-peer communication.

The blog further explains the schema's primitives and structure, including transaction metadata encoding and details about input and output data. It also discusses the ideal transaction scenario for optimal compression, providing potential savings data and test vectors illustrating size reductions in Taproot and legacy transactions after compression.

Additionally, examples of Taproot transactions in uncompressed and compressed forms are given, highlighting the schema's efficiency in optimizing transaction data for environments with limited bandwidth.

Moreover, the email includes a technical comparison between "Legacy (Uncompressed)" and "Legacy (Compressed)" data formats, suggesting that the compression methodology retains essential information while significantly reducing data size. Andrew Poelstra, identified as the Director of Research at Blockstream, provided the email content with his contact details and a personal web page link (https://www.wpsoftware.net/andrew), indicating the discussion's technical nature and relevance to blockchain research.