BTC
$109,677.91
-
0.38%
ETH
$2,794.90
+
4.55%
USDT
$0.9998
-
0.04%
XRP
$2.3088
-
0.56%
BNB
$671.34
+
0.96%
SOL
$164.59
+
2.32%
USDC
$0.9995
-
0.02%
DOGE
$0.1967
+
0.96%
TRX
$0.2906
+
1.30%
ADA
$0.7171
+
1.75%
HYPE
$41.84
+
8.19%
SUI
$3.4789
+
1.00%
LINK
$15.37
+
7.12%
AVAX
$22.46
+
2.37%
XLM
$0.2809
+
2.16%
BCH
$438.05
+
3.14%
TON
$3.3315
+
0.95%
LEO
$8.8531
-
2.49%
SHIB
$0.0₄1331
+
1.67%
HBAR
$0.1802
+
1.43%
Logo
  • News
  • Prices
  • Data
  • Indices
  • Research
  • Events
  • Sponsored
  • Sign In
  • Sign Up
Advertisement

Consensus 2026

Consensus 2026

Our Biggest Sale Ends Soon

00:20:50:01

00

DAY

20

HOUR

50

MIN

01

SEC

Register Now
Markets
Share this article
X iconX (Twitter)LinkedInFacebookEmail

Smart Contracts for Bitcoin? Lightning's Tadge Dryja Is Working on It

A well-known bitcoin developer has published a new proposal for how smart contracts could be added to the blockchain network.

By Alyssa Hertig
Updated Sep 11, 2021, 1:31 p.m. Published Jul 8, 2017, 8:45 a.m.
Tadge Dryja 2

In the race to build public blockchains empowered with self-executing code, at least two competing philosophies have emerged.

Ethereum has created a platform that makes it easy for developers to create nearly any type of smart contract that they want, while bitcoin has been added similar functionality at a much slower pace. But bitcoin developers like Lightning Network paper co-author Tadge Dryja argue there's a reason for adding smart contract functionality to bitcoin more cautiously.

STORY CONTINUES BELOW
Don't miss another story.Subscribe to the Crypto Daybook Americas Newsletter today. See all newsletters
By signing up, you will receive emails about CoinDesk products and you agree to our terms of use and privacy policy.

During his work on the transaction-boosting technology Lightning Network, which he has been working on more recently at MIT, he came up with a method of adding some smart contract functionality to bitcoin in a way that he believes could preserve both privacy and scalability.

The idea behind Dryja's Discreet Log Contracts (DLC) is to try to keep the blockchain more decentralized.

Dryja told CoinDesk:

"It's privacy and scalability focused rather than functionality focused. It doesn't do, say, ICOs or Turing-complete contracts or anything like that, so in that sense it's more limited than what ethereum contracts can do."

While onlookers often see the two cryptocurrencies as competitors, Dryja went on to argue that his idea may just be more practical as an engineering option in the long term.

"It has much lower impact on everyone else who uses the system, as the contracts take up very little [space] on the blockchain," he said.

Bitcoin oracles

Dryja's smart contract idea centers around a popular concept: oracles.

Some of the more complex and interesting smart contracts, as proposed, need the help of an outside data source. Oracles feed that data to smart contracts, which then execute based on the data that they receive.

Say that one user bets five ether that on Friday we will see over 80ºF weather. Two users set up a smart contract that specifies these conditions, and then select a data source that they both trust. (Maybe both users decide that theweather.com is the most trusted resource for timely temperature data.)

Next, the smart contract receives information from this source automatically on Friday. Whoever guesses the correct temperature range wins the five ether. Simple, right?

Ideas for how to do this in bitcoin already exist, but aren't widely used.

Dryja thinks that could be for a few reasons. One, these oracles need to be aware of users through the whole process, opening opportunities for the two to collude and game the system. Two, oracles will know which users are requesting data from them, which means that users that leverage the construction risk their privacy.

Smart contract privacy

That's where Dryja's idea comes in. The interesting part is that the oracle operator can't see if anyone is using the data it sends out.

"That's the lonely life of an oracle," he said. "You can't even tell if there was even a contract even after it happens. So that's kind of fun."

How does DLC accomplish that? At a high level, the oracle beams out data. (Say it sends out the temperature at a certain time each day.) This key will be mixed with data from the user before it is added to the blockchain.

Since the oracle's key is mixed with data that the oracle doesn't know about, the oracle can't tell if it was ever used and added to the bitcoin blockchain.

"We're going to combine the oracle's data with our own secret data, so we can recognize it but the oracle won’t recognize it," Dryja said.

He argued that the rationale for this level of privacy is that, more likely than not, companies using blockchain technologies don't want to reveal their financial records or a trail of the data they're using to the rest of the world.

DLC, like the ethereum project Town Crier, proposes one way of shielding some of the data.

Oracle problems

Besides privacy, oracles face some other tricky problems.

In general, oracles are trusted centralized services. Why does that matter? Remember, the smart contract is going to execute whether it's fed correct data or not. So, users need to "trust" that the service is sending reliable data.

Developers have proposed different ways of dealing with this point of centralization. Decentralized prediction market Augur, for example, plans to use a number of oracles at once to report an outcome.

Dryja doesn't think there's a way of eradicating the problem completely, though he has a couple of ideas for at least "mitigating" it. DLC aims to incentivize oracles to report the correct information. If an oracle dishonestly broadcasts different information to two smart contracts, for example, then the oracle's private key will automatically be revealed.

"Mathematically it works, but does it actually stop oracles from misreporting?" he said, adding that it will take more review to find out how well the idea stands up.

SegWit, please?

The idea is still a work in progress, but Dryja said that he's looking for more feedback from the community with the publication of a white paper on DLC.

For now, he hopes that his idea will help to inspire a new way of thinking about smart contracts; one that is more privacy and scalability focused. As far as next steps for the project, Dryja said that DLC will be his "next fun project" after he squares away some of the work he's doing on his version of the Lightning Network for MIT.

He noted that DLC does not require any changes to bitcoin, but it (like many others in the space) will work better when a coding optimization known as SegWit is activated on bitcoin – if it ever is.

He further said that it's possible to code up a version of DLC without SegWit, but it would be "annoying" to complete a version of the code that doesn't require SegWit's activation if SegWit is then activated soon after. So, he will likely wait for its activation to begin work on the project.

Tadge Dryja image via Shutterstock

smart contractsBitcoinLightning NetworkTadge DryjaFeaturesTechnology News
Alyssa Hertig

A contributing tech reporter at CoinDesk, Alyssa Hertig is a programmer and journalist specializing in Bitcoin and the Lightning Network. Over the years, her work has also appeared in VICE, Mic and Reason. She's currently writing a book exploring the ins and outs of Bitcoin governance. Alyssa owns some BTC.

X icon
CoinDesk News Image
Latest Crypto News
test

[Test 2] Strategy Expands Bitcoin Holdings With Latest Multi-Million Dollar Purchase

13 hours ago

Article image

Bitcoin Whales Seem to Be Calling a Top as BTC Price Consolidates

May 29, 2025

Bitcoin (BTC) price on May 19 (CoinDesk)

Bitcoin Climbs to $105K; Crypto ETF Issuer Sees 35% Upside

May 29, 2025

Breaking News

Breaking New test

May 29, 2025

FastNews (CoinDesk)

Fast News test

May 29, 2025

Article image

Ethereum Surges 4% on Massive Volume as Institutional Interest Grows

May 27, 2025

Top Stories
Gold (Credit: Shutterstock)

Gold Continues Correcting and That Might Be Good for Bitcoin

May 1, 2025

President Donald Trump (TheDigitalArtist/Pixabay)

Bitcoin Poised to Top Record as Trump Inauguration Nears, Major Coins Due for 10% Swings: Traders

Jan 16, 2025

Crypto veteran Hunter Merghart has been hired by hedge fund giant Millennium Management. (Pixabay)

Crypto Exchange Luno's Co-Founder Departed in December

Jan 19, 2023

Tokyo, Japan (Jaison Lin/Unsplash)

Metaplanet Buys Another 1,004 Bitcoin, Lifts Holdings to Over $800M Worth of BTC

May 19, 2025

Article image

Bitcoin Whales Seem to Be Calling a Top as BTC Price Consolidates

May 29, 2025

(CJ/Unsplash)

XRP Futures Start Trading on CME

May 19, 2025

Only 1 article remaining this month.

Sign up for free

About

  • About Us
  • Masthead
  • Careers
  • CoinDesk News
  • Crypto API Documentation

Contact

  • Contact Us
  • Accessibility
  • Advertise
  • Sitemap
  • System Status
DISCLOSURE & POLICES
CoinDesk is an award-winning media outlet that covers the cryptocurrency industry. Its journalists abide by a strict set of editorial policies. CoinDesk has adopted a set of principles aimed at ensuring the integrity, editorial independence and freedom from bias of its publications. CoinDesk is part of the Bullish group, which owns and invests in digital asset businesses and digital assets. CoinDesk employees, including journalists, may receive Bullish group equity-based compensation. Bullish was incubated by technology investor Block.one.
EthicsPrivacyTerms of UseCookie SettingsDo Not Sell My Info

© 2025 CoinDesk, Inc.
X icon
Sign Up
  • News
    Back to menu
    News
    • Markets
    • Finance
    • Tech
    • Policy
    • Focus
  • Prices
    Back to menu
    Prices
    • Data
      Back to menu
      Data
      • Trade Data
      • Derivatives
      • Order Book Data
      • On-Chain Data
      • API
      • Research & Insights
      • Data Catalogue
      • AI & Machine Learning
    • Indices
      Back to menu
      Indices
      • Multi-Asset Indices
      • Reference Rates
      • Strategies and Services
      • API
      • Insights & Announcements
      • Documentation & Governance
    • Research
      Back to menu
      Research
      • Events
        Back to menu
        Events
        • CoinDesk: Policy & Regulation
        • Consensus Hong Kong
        • Consensus Miami
      • Sponsored
        Back to menu
        Sponsored
        • Thought Leadership
        • Press Releases
        • CoinW
        • MEXC
        • Phemex
        • Advertise
      • Videos
        Back to menu
        Videos
        • CoinDesk Daily
        • Shorts
        • Editor's Picks
      • Podcasts
        Back to menu
        Podcasts
        • CoinDesk Podcast Network
        • Markets Daily
        • Gen C
        • Unchained with Laura Shin
        • The Mining Pod
      • Newsletters
        Back to menu
        Newsletters
        • The Node
        • Crypto Daybook Americas
        • State of Crypto
        • Crypto Long & Short
        • Crypto for Advisors
      • Webinars
        Back to menu
        Webinars
        Select Language
        English enEspañol esFilipino filFrançais frItaliano itPortuguês pt-brРусский ruУкраїнська uk