Discreet log contract is an oracle contract scheme proposed by Tadge in this whitepaper.
What are Discreet Log Contracts?
A DLC is a Bitcoin contract between two parties that settles on an oracle’s signed attestation of an event. The oracle signs the outcome using a pre-announced nonce and never learns the contract exists; on-chain it looks like an ordinary transaction.
Where to start
Read the whitepaper first if you’re comfortable with cryptography. Otherwise start with the Introduction to Discreet Log Contracts on GitHub for intuition. For protocol implementations, the dlc-specs repo is the canonical reference.
This list tracks specs, libraries, oracle implementations, and tools in the DLC ecosystem.
Reading
- Introduction to Discreet log contracts
- Discreet log contracts @ MIT
- Discreet Log Contracts: invisible smart contracts on the Bitcoin blockchain
- P2P Protocol Based Crypto Asset Derivative Settled in Bitcoin on Discreet Log Contracts
- Discreet Log Contracts Part 1: What is a Discreet Log Contract?
- Discreet Log Contracts Part 2: How They Work
- Discreet Log Contracts Part 3: Why They Are Great
- Discreet Log Contracts Part 4: Security and Trust Model
- skew. & Crypto Garage trade peer-to-peer Bitcoin-settled S&P500 derivatives
- Crypto Hedging With Discreet Log Contracts
- Discreet Log Contract Demonstration
- DLC by Optech
- Discreet Log Contract by River
- DLC on Lightning
- A Layperson’s Guide to Discreet Log Contracts
- Bitcoin Oracle Contracts: Discreet Log Contracts in Practice
- Oracle-based Conditional payments on Bitcoin
- DLCVM: Generalized, Unboundedly Scalable Computation on Bitcoin
- DLCtix: ticketed DLCs - Ticketed Discreet Log Contracts (DLCs) to enable instant buy-in for wager-like contracts on Bitcoin.
Talks and podcasts
- Tadge Dryja at Dev++ 2017
- Tadge Dryja on MIT OpenCourseWare
- Tadge Dryja at the MIT Bitcoin Expo 2020 (starts at 49:26)
- https://www.youtube.com/watch?v=a3rsFRLUQK0
- DLCs - Programmable Real World Events - Bitcoin 2022
- What you should know about bitcoin DLCs - Stephan Livera podcast
- Discreet Log Contracts - Bitcoin Explained
- Getting to the Bottom of Discreet Log Contracts
- DLCs are on Bitcoin! New Functionality & Potential (Ben Carman)
- Shehzan Maredia on Building Lava, Bitcoin-Native Borrowing, and Improving Self-Custody UX
Specs
Implementations
- dlc-fast-prototyping
- Lightweight framework for fast prototyping and benchmarking of Discreet Log Contracts (DLCs) on Bitcoin
- NDLC
. DLC implementation by Nicolas Dorier
- rust-dlc
, Rust library for working with Discreet Log Contracts
- cfd-dlc
, Library for creating and managing Discreet Log Contracts (DLC)
- bitcoin-s
, Bitcoin Implementation in Scala
- node-dlc
, Bitcoin DLC Protocol in Node.js runtime
- ExFacto
, Bitcoin DLC Protocol Implementation in Exilir
- javascript-dlc
- Javascript library for working with Discreet Log Contracts and Lightning Network
- P2P Derivatives-Client
, Bitcoin DLC Protocol Implementation in Typescript
- P2P Derivatives DLC
, Bitcoin DLC Protocol Implementation in Go
- Maia
, A library for CFDs on Bitcoin which uses DLCs
- Schnorr related examples
,Schnorr, BN, MuSig, discreet log contracts in Phyhton
- Dart DLC
, A Dart Library for DLCs
- Docker DLC
- Docker source for DLCs
- DLC Dev Kit
- Application tooling for dlc contracts
- dlc-btc-lib
, Library for interacting with DLC.Link smart contracts and the Bitcoin blockchain
- dlc-btc-website
, Interface for interacting with DLC.Link smart contracts and the Bitcoin blockchain
- shared-attestor-configuration
, Shared attestor configuration for the DLC.Link network
- dlc-solidity
, EVM compatible smart contracts and examples for the DLC.Link system
- cbtc-lib
, A library of helper functions to Mint, Burn, and Transfer CBTC tokens on the Canton Network
- canton-lib
, Public Canton related Rust library
- Taproot DLC Bridge
, Trustless atomic swap bridge between Bitcoin and Fractal Bitcoin using Taproot-based DLCs
- sibyls - oracle implementation for numeric discreet log contracts
Applications
- 10101
, lightning and DLC wallet with trading derivatives
- P2PDerivatives client
, Infrastructure for DLCs
- Itchy Sats
, CFD trading on Bitcoin - non-custodial, peer-to-peer, Bitcoin only enabled by DLCs
- Atomic Finance, Yield on-chain with DLCs
- Lava, Self custody with Bitcoin and DLCs
- Kruut, Hedge against Hype
- DLC Markets - Trustless OTC derivatives trading
- Sovereign Citadel Terminal
, Bitcoin-native financial OS with non-custodial DLC trading and AI risk agents
- BlockOracle BTC
, Decentralized prediction game on Bitcoin L1 using DLCs and Taproot
- dlctix
- Ticketed Discreet Log Contracts to enable instant buy-in for wager-like contracts on Bitcoin.
Oracles
- suredbits oracle explorer,
- krystal bull
, a full featured DLC Oracle
- dlc-oracle-nodejs
, A library for making Discreet Log Contracts oracles in NodeJS
- sibyls
, an oracle implementation for numerical events based on rust-dlc
- p2pderivatives-oracle
, and oracle implementation for numerical event written in golang
- Cassandra (conduition.io oracle)
- kormir
, a basic DLC Oracle written in rust.
- tee8z/noaa-oracle - NOAA data oracle, queryable from browser and can attest to events for a Bitcoin DLC in dlctix style
- Pythia
, Rust implementation of p2p-derivative-oracle for DLC trading
- Mycelia Signal
, Sovereign oracle protocol with DLC attestations over Lightning sats and USDC on Base
- pow-attest, GitHub event oracle (PR-merged / issue-closed) emitting BIP-340 Schnorr attestations;
/announcementendpoint exposes R-point + outcome_hash for DLC CET adaptor signing; PoW-gated, no account; oracle pubkey2bc78390c94d8bbb96ac3e6940462ba2812418d871e701c1a845fdb1dfd4a0e5
Community
Related Resources
To explore other aspects of the Bitcoin and freedom tech ecosystem, check out these additional resource directories:
- nostr.net - A complete guide to Nostr - projects, implementations, developer tools and all other resources
- liquidnetwork.wiki - A curated list of Liquid Network resources, libraries, tools and applications
- pubky.tech - Pubky, an open protocol for censorship resistant web applications
- dlc.wiki - Everything you need to know about Discreet Log Contracts
- ungovernable.tech - A collection of resources on encryption, privacy tools, and decentralized technologies
- lightning-network.tech - Essential tools, guides, and communities for Bitcoin Lightning Network node operators.
- ark-protocol.com - A directory of Ark protocol resources, libraries, tools and applications
Contributing
If you’d like to add something to this list, please submit a Pull Request on GitHub.
This directory is maintained by aljaz. Your contributions help keep this information up-to-date and valuable.