A system that may permit good contracts to be executed on Bitcoin with out the consumer handing over custody of their funds to any operator was proposed on Might 27 by Burak Keceli, the developer identified within the bitcoin group for having uncovered important vulnerabilities within the Lightning Community (LN) in 2022 that pressured an emergency replace.
The brand new challenge is named Dice and goals to carry programmable finance to Bitcoin in order that when a consumer deposits their funds in a sensible contract they don’t briefly lose the flexibility to withdraw them on their very own.
Keceli describes Dice as a platform on which broker-free asset exchanges, collateralized lending methods, and bitcoin (BTC)-backed stablecoins, amongst different monetary purposes, may very well be constructed.
Whereas many present L2s require a point of belief in operators or committees (corresponding to Keceli’s personal Ark L2 Service Suppliers or the federation multisig on Blockstream’s Liquid Community), Dice guarantees that the consumer won’t ever lose the flexibility to withdraw their funds unilaterally within the base layer of Bitcoin.
However, Dice would require a technical layer referred to as Engine, which would act as your inside coordinator. Its function can be to order consumer transactions, periodically document system standing in Bitcoin, and coordinate off-network execution.
In that sense, Keceli maintains that the Engine “isn’t the custodian”since, based on the developer, the funds would stay underneath an settlement between the consumer and the Engine that requires the signature of each to maneuver (multisig 2 of two). As well as, Keceli explains, the consumer may pressure its exit with out the collaboration of the Engine if it acted maliciously or stopped working.
Whereas customers retain the theoretical possibility of unilateral exit ought to the Engine cease working or act maliciously, this makes the Engine a possible level of operational friction, even when it doesn’t compromise the custody of funds.
Whereas Keceli doesn’t delve into how the Engine may fail, an error on this construction may doubtlessly be attributable to a technical failure of the system or deliberate motion, together with the potential for the Engine being compromised by a 3rd occasion.
How would Dice work on Bitcoin? Three items mixed
Dice would mix three mechanisms to realize good contracts with unilateral output:
Timeout timber (timeout timber)
The primary are the timeout timber (timeout timber), that are the construction that organizes and information the funds of all customers inside Dice. They work like a tree of pre-signed transactions: every department corresponds to a consumer and has, from the start, recorded the precise of that consumer to assert their funds straight in Bitcoin if one thing goes flawed. Your entire tree shares a single periodic registration level within the base community.
That structure permits two modes of operation. So long as the Engine works appropriately, transactions between customers happen inside Dice with out the necessity to write every motion in Bitcoin, which would cut back time and prices. But when the Engine stopped working or tried to withhold funds, the consumer wouldn’t want its authorization to exit: they may activate their department of the tree straight in Bitcoin and get better theirs autonomously, as soon as the predefined interval that was recorded whenever you deposited. That time period is the one situation; There is no such thing as a middleman that may block it. This expertise comes from the Ark protocol.
BitVM3
The second mechanism is BitVM3, the newest model of BitVM (Bitcoin Digital Machine), a proposal by developer Robin Linus. BitVM3, which isn’t but operational, goals to unravel in Dice how a consumer may show that the Engine functioned incorrectly, if all execution happens exterior of Bitcoin.
Dice’s reply is that every Engine operation is accompanied by a verifiable assertion about its consequence. If the consumer detects that this assertion is fake, they will current proof of the error straight in Bitcoin. Bitcoin evaluates it and, if it confirms the fraud, it could activate a penalty in opposition to the Engine, which might launch the funds blocked as collateral uncovered to a dispute resolved in favor of the consumer. The mechanism seeks to make sure that the price of appearing incorrectly is larger than any attainable profit.
CubeVM
The third is CubeVM, a digital machine (program execution surroundings) constructed as an extension of Bitcoin Script, Bitcoin’s native programming language.
CubeVM would add assist for complicated good contractsthat are packages that would execute superior monetary logic, corresponding to asset exchanges or collateralized stablecoins, one thing that native Bitcoin Script doesn’t permit.
The issue Dice desires to unravel in Bitcoin
Utilizing good contracts in Bitcoin implies that when a consumer deposits their funds right into a contract, These funds turn out to be underneath the management of this system logicnot the consumer’s non-public key.
In that intermediate state, Bitcoin has no native manner of recognizing that these funds belong to the consumer, because the protocol understands keys, not program logic. The consumer is, in apply, depending on the system you might be utilizing working appropriately to get better yours.
The mechanism that Keceli proposes to unravel that is referred to as Shadowing (shadow projection). This software would preserve always an inside document of how a lot BTC would correspond to every consumer inside every contract.
That document (referred to as shadow houseor shadow house) wouldn’t signify direct custody of the funds, however somewhat the debt that the contract would have with every participant. That debt can be frequently mirrored within the timeout timberin order that the consumer would at all times have an exit accessible to the Bitcoin community equal to the quantity that the contract owes them, even whereas their funds are underneath the management of this system.
For the mechanism to work appropriately, Keceli describes an inside rule of the Dice digital machine: the sum of all quantities recorded within the shadow house may by no means exceed the Bitcoin that the contract successfully custody. If that situation is violated, the operation you make in Dice can be routinely rejected. This is able to search to make sure that there are at all times actual funds backing each attainable unilateral exit.
On this context, whereas the controversy on Bitcoin L2s with programmability oscillates between methods that obtain complicated contracts by giving up a point of custody, and those who protect consumer sovereignty however with restricted performance, Dice, one of the latest of those proposals, tries to not give in on both entrance. Nonetheless, whether or not the design withstands technical scrutiny and is applied continues to be an open query.

