OP-DLC 2: Optimizing the Optimistic Challenge Mechanism of DLC Contracts

robot
Abstract generation in progress

OP-DLC 2: The truth is always simple

DLC(Discreet Log Contract) is a contract execution framework based on oracles proposed by Tadge Dryja from MIT in 2018. It allows both parties to make conditional payments based on predefined conditions, executing payments through pre-signed agreements and oracle-signed results. DLC enables new decentralized financial applications while ensuring the security of Bitcoin deposits.

The previous text summarized the advantages and challenges faced by DLC, and proposed some optimization solutions. However, due to the multi-party involvement in DLC, the defense strategies are relatively complex and lack simplicity.

In the Bitcoin system, all actions are implemented through UTXO. As long as the UTXO is correct, it can defend against any attacks. Similarly, in DLC, all actions are implemented through CET(Contract Execution Transaction). Therefore, using the optimistic challenge mechanism to ensure the CET is correct can defend against any attacks.

Specifically, the oracle must stake 2 BTC to sign CET. An optimistic challenge mechanism is added to CET. If CET is not challenged or successfully responds to a challenge, it is considered correct and completes settlement, allowing the oracle to withdraw the stake and receive a fee. If the oracle attempts to act maliciously, anyone can successfully challenge, and the CET will not be settled, resulting in the oracle losing the stake and being unable to sign for the same CET again. This design is simple and effective.

DLC Principle

Taking Alice and Bob betting on the parity of the ξ-th block hash value as an example to illustrate the principle of DLC:

  1. Capital Injection Transaction: Alice and Bob each lock 10 BTC into a 2-of-2 multisig output.

  2. Build CET: Create two CETs for spending injection transactions.

  3. The oracle computes commitments and generates signatures.

  4. Settlement: The oracle signs the corresponding CET based on the block hash.

  5. Withdraw: The winning party calculates the new private key and spends the locked funds.

Research has found that simply using an optimistic challenge mechanism to ensure CET is correct can withstand any attacks. Incorrect CETs will be challenged and not executed, while correct CETs will be executed. At the same time, oracles must pay a price for malicious behavior.

OP-DLC 2

The OP-DLC includes the following provisions:

  1. The oracle is composed of alliances, and any member can sign CET. A pledge of 2 BTC is required to sign.

  2. If the oracle behaves maliciously, anyone can initiate a challenge.

  3. The CET signed honestly can be settled after 1 week, and the oracle will receive rewards.

  4. Anyone can challenge the Oracle_sign.

  5. The challenge is permissionless, and anyone can oversee the execution of the contract.

Advantages:

  • High asset control system, users can only trust themselves.
  • High capital utilization rate
  • The range of the oracle can be flexibly determined.

Disadvantages:

  • Withdrawal time requires 1 week
  • The number of pre-signed transactions is linearly related to the number of CET.

Conclusion

OP-DLC introduces an optimistic challenge mechanism to CET, ensuring that erroneous CETs are not settled and malicious oracles are penalized, while correct CETs are executed and honest oracles are rewarded. This simple yet effective design can resist various attacks.

Bitlayer Research: OP-DLC 2 Simplified

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 5
  • Share
Comment
0/400
MeltdownSurvivalistvip
· 07-05 21:10
It's perfectly fine; it's not like we can't wait.
View OriginalReply0
StakeHouseDirectorvip
· 07-05 05:34
I don't want slow withdrawals.
View OriginalReply0
FloorSweepervip
· 07-04 02:53
weak tech, slow withdrawals... typical bs
Reply0
bridge_anxietyvip
· 07-04 02:43
Hehe, a new gadget has come out again, not a loss.
View OriginalReply0
CryingOldWalletvip
· 07-04 02:38
They have come up with a new mechanism, interesting!
View OriginalReply0
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate app
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)