Comparing Bitcoin Covenant Proposals for Vaults

Posted by askii21m

Sep 26, 2026/04:16 UTC

The discussion around the application of APOAS and CTV in vault addresses highlights some crucial vulnerabilities and operational differences. A significant issue with APOAS is its susceptibility to replay attacks where signatures can be reused across different Unspent Transaction Outputs (UTXOs) at the same vault address. While such replays might seem harmless as they only unvault the second deposit, they introduce a risk termed the "half-spend problem." In this scenario, both deposits are potentially spendable in a single transaction due to APOAS not committing to the input count or index. For instance, a transaction could involve two vault inputs and one output, allowing the transaction to verify at both inputs but leading to an unequal distribution of sats, benefiting the miner disproportionately.

Conversely, BIP-119, which advocates for CTV, addresses this by committing both to the index and input count, thus enhancing the security against half-spend issues. This commitment ensures that each input is distinctly recognized, preventing the simultaneous verification of multiple inputs that share the same signature. The example provided illustrates a practical setup where an APOAS vault and a CTV vault were configured with identical deposits. The APOAS system verified the transaction at both inputs, effectively processing a half-spent transaction, whereas the CTV system rejected the second input due to the index being included in the hash.

This comparison underscores the inherent trade-offs between these two approaches: while omitting certain commitments like the input index may offer greater fee flexibility in APOAS, it also increases the exposure to half-spend vulnerabilities, making the non-reuse of vault addresses more of a necessity than a mere recommendation. For further details on how these systems compare and their implications on wallet vault contract designs, reference can be made to a detailed explanation found here.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback