Reviewed Aug 2026
DE
BA-11 · LESSON 05

DLCs

KEY DEFINITIONS

Terms used in this lesson

DLC
Discreet Log Contract: a Bitcoin contract whose settlement can depend on an oracle attestation.
Oracle
A system that reports outside information, such as a market price, for use by a protocol.
CET
Contract Execution Transaction: a prebuilt DLC payout transaction for one oracle outcome or range.
BIP340
The Bitcoin Improvement Proposal specifying Schnorr signatures for the secp256k1 curve.
Schnorr signature
Bitcoin’s Taproot signature scheme, whose algebra supports compact verification and advanced multi-party signing.
BTC
The common market ticker for bitcoin.
USD
United States dollar, the reference currency in a BTC/USD price.

Discreet Log Contracts use oracle attestations and adaptor signatures so outcomes settle without revealing the full contract logic on chain.

35 min Difficulty 3/5 Not started

Loading lesson visuals...

01

Learn the idea

A Discreet Log Contract, or DLC, lets parties make a Bitcoin contract whose payout depends on a future fact, such as a price, while keeping the oracle from controlling the money and keeping most contract detail off chain. A Contract Execution Transaction, or CET, is a prebuilt outcome payout. Adaptor signatures and an oracle's elliptic-curve nonce announcement bind an attestation to completion of the matching CET. BIP340 is Bitcoin's exact Schnorr signature specification. The in-app workbench executes a bounded secp256k1 adaptor equation: it binds the oracle key, event, outcome, announced nonce, attestation scalar, payout-specific CET digest, party key, encrypted scalar, completed signature, funding amount, and signed refund digest. It also applies the independent refund height. This is a deterministic teaching profile, not a wire-compatible implementation of a named production DLC library.

GUIDED EXPLANATION1/4 ideas inspected
1

The oracle commits to future attestations

Before the event, the oracle publishes public nonce commitments describing how it will attest possible outcomes.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionA DLC puts the full financial contract into Bitcoin Script.

Most outcome logic and negotiation stay off chain. Bitcoin enforces signatures, timelocks, and the resulting settlement transaction.

02
FINISH LEARNING FIRST

The questions unlock after every required learning activity

Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.