DLCs
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.
Loading lesson visuals...
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.
The oracle commits to future attestations
Before the event, the oracle publishes public nonce commitments describing how it will attest possible outcomes.
Inspect every idea above to open it.
Most outcome logic and negotiation stay off chain. Bitcoin enforces signatures, timelocks, and the resulting settlement transaction.
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.