Atomicity
//todo
//todo add a Mint transaction schematic
Atomicity is a critical property of the Covenant protocol. It ensures that each core operation—minting, withdrawing, and claiming—executes entirely or not at all, preventing partial state changes and preserving system integrity.
Why Atomicity matters
Consistency in Distributed Systems
Atomic operations guarantee that complex, multi-step processes complete without intermediate, inconsistent states. In Covenant, collateral locking and token issuance are combined into a single transaction, ensuring either both actions succeed or neither occurs.
Limitations of Multi-Step Approaches
Protocols that split operations across multiple transactions introduce risk: failed intermediate steps can result in locked collateral without token issuance, or tokens burned without collateral release. Such failures undermine user confidence and require manual intervention which contradicts the notion of Decentralisation.
Benefits for Users
By executing all steps in a single transaction, Covenant ensures users never face partial failures—collateral is either locked and tokens are issued together or not at all. This atomic approach delivers predictable outcomes: every action yields a definitive result, eliminating uncertainty and minimising mistakes.
Validation and Verification
An open-source node functions as an indexer that scans Bitcoin blocks from genesis onward to identify and validate Covenant transactions. The indexer reconstructs each candidate transaction and confirms that mint, withdraw, and claim operations are contained within single transactions and conform to protocol rules. Anyone may run a Covenant Protocol Node to audit the full transaction history and verify that all state changes adhere to the specification. This transparent, auditable process ensures that atomicity and other protocol guarantees are consistently upheld.
Last updated
