Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Discreet Log Contract (DLC)

A Discreet Log Contract (DLC) is a type of Bitcoin smart contract that uses adaptor signatures and external oracles to execute conditional payments privately and off-chain.
Chainscore © 2026
definition
BLOCKCHAIN PROTOCOL

What is a Discreet Log Contract (DLC)?

A Discreet Log Contract (DLC) is a cryptographic protocol that enables the creation of trust-minimized financial contracts on Bitcoin, where the contract's execution and outcome are settled entirely off-chain without revealing its terms to the public blockchain.

A Discreet Log Contract (DLC) is a type of smart contract for Bitcoin that uses oracles and adaptor signatures to enable conditional payments based on real-world events, such as sports scores, price feeds, or weather data, without exposing the contract's logic on-chain. The contract terms are agreed upon and signed off-chain by the involved parties, creating a set of possible transaction outcomes. A trusted oracle, or a federation of oracles, then publishes a cryptographic signature attesting to the real-world outcome, which allows only the correct spending transaction to be broadcast and settled on the Bitcoin blockchain.

The core cryptographic mechanism enabling DLCs is the adaptor signature, a modified digital signature that is encumbered with a secret value related to the oracle's attestation. When parties set up the contract, they collaboratively create a series of possible Bitcoin transactions, each corresponding to a different contract outcome, and sign them with these adaptor signatures. These partial signatures are useless on their own. Only when the oracle reveals its signature for the actual outcome does it provide the missing cryptographic piece, allowing the winning party to complete and broadcast the single, valid settlement transaction.

This architecture provides significant privacy and scalability benefits. Because the contract's logic and the full set of potential outcomes are never recorded on-chain, transaction graph privacy is preserved—external observers only see a simple, final settlement. Furthermore, by keeping the bulk of the contract negotiation and computation off-chain, DLCs avoid congesting the base Bitcoin layer, making them a highly scalable solution for complex conditional logic. This positions DLCs as a leading layer-2 technology for prediction markets, options contracts, and hedging instruments on Bitcoin.

The security model of a DLC hinges on the trustworthiness and correct execution of the oracle(s). While the protocol is trust-minimized regarding the counterparty (they cannot cheat the outcome), participants must rely on the oracle to publish a correct and timely attestation. To mitigate this, DLCs can be designed to use multiple oracles in a threshold scheme, requiring a consensus of signatures before a settlement is possible, thereby reducing reliance on any single point of failure. This makes the system robust against oracle manipulation or downtime.

In practice, a DLC for a Bitcoin/USD price bet would involve two parties locking funds in a 2-of-2 multisig address. They would pre-sign transactions for outcomes like "BTC > $70,000" and "BTC ≤ $70,000," using adaptor signatures tied to an oracle's future signature. When the oracle publishes its signed data point for the price at the contract's expiry, the party whose condition was met can combine the oracle's signature with their adaptor signature to create a valid Bitcoin transaction, claiming the locked funds. The entire process, except for the final settlement, remains private and off-chain.

how-it-works
MECHANISM

How Does a DLC Work?

A Discreet Log Contract (DLC) is a type of smart contract for Bitcoin that enables two parties to create a conditional agreement whose outcome is determined by external data, without revealing the contract's terms on-chain.

A Discreet Log Contract (DLC) is constructed using a combination of adaptor signatures and an oracle. The two contracting parties first agree on a set of possible outcomes for a future event (e.g., "BTC price > $70,000" or "BTC price ≤ $70,000"). An oracle, which is a service that will later publish a cryptographic signature attesting to the real-world outcome, provides a set of nonces or signature points corresponding to each potential result during the setup phase. The parties use these points to create a series of partial signatures for a multisignature transaction that can only be completed with the oracle's final signature.

The core cryptographic mechanism is the adaptor signature, which is a partial signature encrypted with a secret tied to the oracle's future announcement. When setting up the DLC, the parties collaboratively create a funding transaction that locks funds into a 2-of-2 multisig address. They then generate a set of Conditional Execution Transactions (CETs), one for each possible contract outcome. Each CET is signed with an adaptor signature, meaning it is incomplete and cannot be broadcast until the oracle reveals the secret corresponding to the actual event outcome.

Execution occurs when the oracle publishes its attestation for the real-world event. This attestation contains the cryptographic secret needed to complete only one of the pre-signed adaptor signatures. The winning party can then take this secret, complete their signature on the corresponding CET, and broadcast the transaction to claim the funds according to the contract terms. Critically, only the single, executed CET is ever seen on the blockchain; all other potential outcomes and the full terms of the contract remain entirely private.

This design provides significant advantages over other Bitcoin smart contract methods. Unlike hashed timelock contracts (HTLCs), DLCs can handle complex, multi-outcome logic. Compared to executing contracts on a separate layer or sidechain, DLCs settle directly on the Bitcoin base layer, inheriting its security. The privacy benefit is paramount: external observers cannot determine what the contract was about, how many outcomes were possible, or which party "won," seeing only a simple multisig settlement.

key-features
ARCHITECTURE

Key Features of DLCs

Discreet Log Contracts (DLCs) are a trust-minimized protocol for executing conditional payments on Bitcoin. They are defined by several core architectural features that differentiate them from other smart contract systems.

01

Oracle-Based Execution

DLCs rely on one or more oracles (attestation providers) to determine contract outcomes. The contract is pre-signed for all possible oracle attestations, but only the outcome signed by the oracle can be spent. This separates computation from consensus, keeping the contract logic off-chain while settlement is enforced on-chain.

02

Non-Custodial & Peer-to-Peer

Funds are locked in a multisignature (multisig) address controlled by the two contract participants. Neither party can unilaterally withdraw funds, and no third-party custodian is required. Settlement is a direct transaction between the participants, triggered by the oracle's data.

03

Privacy-Preserving Design

The specific terms and conditions of the contract are never revealed on-chain. Only the funding transaction (multisig) and settlement transaction are broadcast. Observers see a simple payment, not the underlying logic or oracle data that triggered it, providing strong transaction graph privacy.

04

Deterministic & Pre-Signed

All possible settlement transactions for every potential oracle outcome are cryptographically generated and signed before funds are locked. This eliminates on-chain negotiation or disputes. Execution is deterministic: the correct settlement is the one whose signature matches the oracle's published attestation.

05

Bitcoin-Native & Taproot Optimized

DLCs are built using core Bitcoin Script primitives like adaptor signatures and Schnorr signatures. The Taproot upgrade (Schnorr/P2TR) made DLCs more efficient and private by enabling key aggregation, reducing on-chain footprint, and making all settlements look like standard single-signer spends.

06

Example Use Cases

  • Financial Derivatives: Binary options or CFDs on asset prices.
  • Insurance: Parametric crop or event cancellation insurance.
  • Prediction Markets: Betting on sports or election outcomes.
  • Cross-Chain Swaps: Atomic swaps contingent on proof of payment on another chain.
examples
PRACTICAL APPLICATIONS

DLC Use Cases and Examples

Discreet Log Contracts (DLCs) enable a wide range of sophisticated, trust-minimized financial agreements on Bitcoin. These examples illustrate how DLCs move beyond simple bets to power complex, real-world financial primitives.

01

Decentralized Derivatives & Options

DLCs can create non-custodial financial derivatives, such as call or put options on asset prices. A user can lock funds in a contract that pays out based on a future Bitcoin price oracle attestation. This enables:

  • Covered call writing for yield generation.
  • Portfolio hedging against downside risk.
  • Settlement in native bitcoin, without intermediaries or tokenization.
02

Insurance & Parametric Coverage

DLCs automate insurance payouts based on verifiable external events. A policyholder and insurer lock funds in a DLC that pays out automatically if an oracle signs data confirming a predefined trigger event, such as:

  • Flight delay insurance (payout if flight data shows a 2+ hour delay).
  • Crop insurance (payout if weather oracle reports drought conditions).
  • Smart contract failure insurance (payout if a specific contract is exploited).
03

Decentralized Prediction Markets

DLCs form the settlement layer for prediction markets where users bet on event outcomes. Unlike other systems, DLC-based markets are non-custodial and privacy-preserving, as only the final outcome is broadcast. Examples include:

  • Betting on election results or sports scores.
  • Forecasting protocol metrics like Total Value Locked (TVL) or transaction volume.
  • Markets resolve automatically via a pre-agreed oracle or oracle committee.
04

Cross-Chain Atomic Swaps

DLCs can facilitate trust-minimized atomic swaps between Bitcoin and other chains (e.g., Ethereum, Liquid Network). The contract locks BTC, and its payout is contingent on proof of a successful transaction on the counterparty chain, verified by an oracle. This creates:

  • Cross-chain DEXs without wrapped assets or bridges.
  • Conditional payments that only settle if an action occurs on another blockchain.
  • Enhanced security compared to hash-time-locked contracts (HTLCs) for complex conditions.
05

Oracle-Based Escrow & Conditional Payments

DLCs act as programmable escrow, releasing funds only when specific, objectively verifiable conditions are met. This is useful for:

  • Freelancer payments that release upon GitHub commit verification.
  • Retail delivery payments that trigger upon IoT sensor confirmation of delivery.
  • Sports betting winnings distributed after a verified final score. The contract logic is defined by the attestation points in the DLC's oracle announcements.
06

Layer 2 Protocol Integration

DLCs are a foundational primitive for Bitcoin Layer 2 protocols. They enable state channels and rollups to handle complex, conditional logic off-chain, with final settlement enforced on the base layer. Key integrations include:

  • State channel networks where dispute resolution is governed by DLC oracle outcomes.
  • Drivechain-style sidechains using DLCs for federated peg security.
  • Client-side validation frameworks that use DLCs as a commitment layer for richer smart contracts.
technical-details-adaptor-signatures
CRYPTOGRAPHIC PRIMITIVE

Technical Deep Dive: Adaptor Signatures

An exploration of adaptor signatures, the cryptographic building block that enables conditional payments and off-chain protocols like Discreet Log Contracts (DLCs).

An adaptor signature is a cryptographic construction that encodes a secret value within a digital signature, making the signature valid only if the secret is revealed. It is a foundational primitive for conditional payments and off-chain protocols, acting as a cryptographic "lockbox" for information. The signer produces a signature that is incomplete or "adapted" to a cryptographic puzzle; completing the signature to make it valid on the blockchain requires solving the puzzle by revealing the hidden secret, known as the witness or adaptor point.

The core mechanism relies on elliptic curve cryptography. The signer creates a signature that is offset by a secret value t, represented by its public point T = t*G. This produces an adaptor signature σ'. To verify and broadcast a valid signature σ, the solver must provide t. Crucially, anyone who sees the valid signature σ can subtract the adaptor signature σ' to compute the secret t = σ - σ'. This property, called signature adaptor, ensures that the act of completing the payment automatically and trustlessly reveals the pre-image secret.

This technology is the engine behind Discreet Log Contracts (DLCs). In a DLC, an oracle commits to outcomes (e.g., "BTC > $60K") using adaptor signatures. Each possible outcome is tied to a unique secret. The contract is a set of adaptor-encrypted transactions that can only be completed with the secret corresponding to the real-world outcome. When the oracle publishes its signature for the correct outcome, it inadvertently reveals the secret, allowing only the winning party to claim the funds. This keeps all contract details off-chain until settlement.

Beyond DLCs, adaptor signatures enable a wide array of Layer 2 protocols. They are key to atomic swaps between different blockchains, where the secret revealed by one chain's transaction is used to claim funds on the other. They also power payment pools, coinjoins, and other collaborative transaction schemes where participants need to prove knowledge of a secret to contribute to a signed transaction without revealing it prematurely to their peers.

The security model of adaptor signatures inherits from the underlying digital signature scheme, typically Schnorr or ECDSA. For Schnorr signatures, the construction is more elegant and efficient due to linearity. Critical considerations include ensuring the adaptor point T is properly integrated and that the protocol guards against signature malleability and replay attacks. When implemented correctly, they provide a powerful, trust-minimized tool for embedding complex logic into Bitcoin and other cryptocurrency transactions.

security-considerations
DISCREET LOG CONTRACT (DLC)

Security and Trust Considerations

DLCs are a trust-minimized smart contract framework for Bitcoin, enabling complex conditional agreements without a central operator. This section details the cryptographic and operational security models that make them unique.

02

Privacy & On-Chain Discretion

A DLC's contract logic and potential outcomes are never revealed on-chain. Only the funding transaction and a single, final settlement transaction are broadcast. This provides transaction graph privacy, as external observers cannot determine the specific conditions or bets that were agreed upon, only that a multi-signature contract was settled.

03

Non-Custodial Security

Funds in a DLC are secured in a 2-of-2 multisignature address controlled by the two counterparties. Neither party can unilaterally withdraw funds. Settlement requires cooperation or a valid attestation from the oracle set. This eliminates custodial risk and ensures users maintain control of their private keys throughout the contract's lifecycle.

04

Oracle Attestation Integrity

The security of the settlement hinges on the integrity of oracle attestations. Oracles use Schnorr signatures to sign event outcomes. The contract is constructed so that only the signature for the actual outcome can be combined with the user's key to produce a valid settlement signature. This prevents oracles from signing invalid outcomes that would allow theft.

05

Watchtowers & Dispute Resolution

To mitigate the risk of a non-cooperative counterparty, watchtower services can be employed. These third parties monitor the blockchain for settlement transactions. If one party broadcasts a settlement using an invalid oracle attestation, the watchtower can broadcast a justice transaction to penalize the fraudster and compensate the honest party, enforcing the protocol's security guarantees.

06

Implementation & Protocol Risks

Security depends on correct implementation of the DLC protocol specification and the underlying cryptographic libraries. Risks include:

  • Protocol bugs in wallet software.
  • Incorrect contract construction leading to fund loss.
  • Oracle collusion if the threshold set is compromised.
  • Timelock exhaustion if a counterparty disappears, requiring a collaborative refund.
COMPARISON

DLCs vs. Other Bitcoin Contract Types

A technical comparison of Discreet Log Contracts against other prominent Bitcoin-native contract protocols.

Feature / AttributeDiscreet Log Contract (DLC)Hashed Time-Locked Contract (HTLC)Multi-Signature (Multi-Sig)Pay-to-Taproot (P2TR) Key Path

Primary Use Case

Oracle-based conditional payments (e.g., derivatives, prediction markets)

Atomic swaps, Lightning Network payments

Custodial arrangements, governance, fund security

Simple cooperative or non-cooperative settlement

Trust Model

Trusted oracle(s) for data feed

Trustless counterparty, time-based enforcement

Trusted co-signers

Trusted co-signers (cooperative) or single party (non-cooperative)

On-Chain Privacy

High (contract terms not revealed at settlement)

Low (hash preimage revealed on-chain)

None (all participants and policy are visible)

High (single signature, indistinguishable from normal spend)

Contract Complexity

High (supports complex, multi-outcome logic)

Low (binary condition: hash preimage or timeout)

Low (m-of-n signature logic)

Low (pre-negotiated off-chain, simple on-chain execution)

Dispute Resolution

Oracle attestation determines outcome automatically

Pre-defined timeout allows unilateral refund

Requires cooperation of threshold signers

Requires cooperation for key path; script path for disputes

Typical Transaction Size

~200-300 vbytes (witness discount)

~150-200 vbytes

~110-140 vbytes per signer

~58 vbytes (key path, single signature)

Native Support for External Data

Requires Off-Chain Communication

ecosystem-usage
DISCREET LOG CONTRACT

DLC Ecosystem and Tooling

A Discreet Log Contract (DLC) is a type of smart contract on Bitcoin that enables conditional payments based on external data, secured by cryptographic oracles. The ecosystem comprises specialized software, services, and standards required to build, execute, and manage these contracts.

04

Specialized Use Cases & Markets

DLC tooling is evolving to support specific financial primitives built on top of the base protocol:

  • Prediction Markets: Platforms where users can bet on event outcomes.
  • Decentralized Derivatives: Contracts for differences (CFDs) or options on asset prices, settled via oracle attestations.
  • Insurance & Hedging: Parametric insurance contracts that payout automatically based on verifiable data (e.g., weather, flight delays).
  • Atomic Swaps with Conditions: Swaps that only complete if a specific oracle condition is met.
05

Schnorr Signatures & Taproot

The adoption of Schnorr signatures and the Taproot upgrade (BIP 340, 341, 342) is a major catalyst for DLCs, offering significant improvements:

  • Signature Aggregation: Multiple signatures (e.g., from parties and oracles) can be combined into one, reducing on-chain footprint and improving privacy.
  • Smaller Proof Sizes: More efficient than the earlier ECDSA-based constructions.
  • Taproot Script Trees: Allows complex settlement conditions to be hidden behind a single Taproot output, making all DLC settlements look like standard Bitcoin payments.
06

Watchtowers & Monitoring Services

Services that help secure DLCs during their lifecycle, particularly for long-duration contracts:

  • State Monitoring: Watches the blockchain for oracle attestation broadcasts and notifies the relevant parties.
  • Settlement Enforcement: Can automatically broadcast the correct settlement transaction if a counterparty attempts to cheat or is unresponsive after an oracle event.
  • Backup & Recovery: Tools to help users recover their ability to settle a DLC if they lose access to their primary device, often using pre-signed backup transactions.
DISCREET LOG CONTRACT (DLC)

Frequently Asked Questions (FAQ)

A Discreet Log Contract (DLC) is a type of smart contract built on Bitcoin and other UTXO-based blockchains that enables trust-minimized execution of conditional agreements using oracles and cryptographic adaptor signatures.

A Discreet Log Contract (DLC) is a protocol for creating conditional payments on Bitcoin by leveraging oracles and adaptor signatures. It works by having two parties commit to a set of possible transaction outcomes based on future real-world events. An oracle signs a message attesting to the event outcome, and this signature is used to construct an adaptor signature that allows only the winning party to claim the funds. The contract terms and all potential outcomes are pre-signed and committed to the blockchain only when settled, keeping the contract details private off-chain.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
Discreet Log Contract (DLC) - Bitcoin Smart Contract | ChainScore Glossary