Virtual UTXOs
Last updated
Last updated
Brollup is built on the concept of virtual UTXOs (VTXOs), enabling their use in smart contracts as payable constructs.
Brollup transactions are off-chain coinswaps between VTXOs and calldata. Similar to how the Ark Network swaps VTXOs for new VTXOs, Brollup swaps VTXOs for calldata (plus new VTXOs).
VTXOs are verifiable off-chain and enforceable on-chain. Calldata, on the other hand, undergoes client-side validation; Bitcoin nodes see the bytes, while Brollup nodes read and interpret the bytes.
Since calldata is evaluated in a client-side validated context and VTXOs are verifiable off-chain, a VTXO can be swapped for calldata that executes a payable condition in a smart contract. For example, the contract can grant tokens to the msg.sender
in exchange for paid Bitcoin, with the location of the payment VTXO derived from the calldata.
This approach covers over 90% of DeFi use cases, whether listing an NFT for sale in exchange for Bitcoin—where the buyer pays with Bitcoin upon execution—or placing a token sell order on a decentralized exchange, where the filler pays with Bitcoin upon execution. All of this is atomically executed, verifiable, scalable, and enforceable on Bitcoin.