Stolen Bitcoin? Anti-Theft Feature Gets Second Life on Sidechains

A concept that could enable new functionality for bitcoins on the bitcoin blockchain is being tested by Blockstream.

AccessTimeIconNov 4, 2016 at 5:35 p.m. UTC
Updated Aug 18, 2021 at 5:22 p.m. UTC

Presented By Icon

Election 2024 coverage presented by

Stand with crypto

At its core, bitcoin is about giving users better control of their money.

Often called "programmable money", bitcoin has scripts that limit how future bitcoin transactions can be spent (and that control variables like who can spend them). One such script ensures the correct person is spending the bitcoin by checking if the correct signature was used before unlocking and sending the funds.

  • Bitcoin Mining in the U.S. Will Become 'a Lot More Decentralized': Core Scientific CEO
    13:18
    Bitcoin Mining in the U.S. Will Become 'a Lot More Decentralized': Core Scientific CEO
  • Binance to Discontinue Its Nigerian Naira Services After Government Scrutiny
    05:10
    Binance to Discontinue Its Nigerian Naira Services After Government Scrutiny
  • The first video of the year 2024
    04:07
    The first video of the year 2024
  • The last regression video of the year 3.67.0
    40:07
    The last regression video of the year 3.67.0
  • This week, Blockstream core tech developer Russell O'Connor revealed he's been testing a couple of new scripts on an Elements Alpha sidechain (which is pegged to the bitcoin testnet) that could add new functionality.

    Called "covenants", the new style of scripts potentially opens up possibilities for how bitcoin users can control, or restrict, spending of their money — possibly for their protection. (This is an idea that was previously explored by researchers Malte Möser, Ittay Eyal, and Emin Gun Sirer).

    One use case for these scripts is to help users rein in their coins in the case of a hack (an all too common occurrence in bitcoin).

    When asked what he thinks of the new covenant work, Eyal said it was potentially a boon to bitcoin users who may be worried about losing their bitcoins or otherwise having them compromised or stolen.

    Eyal told CoinDesk:

    "It's also going to increase user-side security in a way that's invaluable."

    Extending bitcoin's scripts

    The idea is notable as a script that can limit how bitcoins can be spent hasn't been implemented in bitcoin before, a fact noted by Eyal.

    In particular, there are two new covenant scripts that Blockstream explored, each of which take parameters and outputs whether the script is valid, or whether or not the transaction is currently spendable based on its restrictions.

    It's worth noting that bitcoin’s scripting system is currently quite simple for security's sake. There aren't limitless rules in bitcoin right now because new additions can be potentially dangerous and developers note that they take time to test.

    This is where sidechains may come in handy, although they are not yet pinned to the main blockchain.

    Bitcoin startup Blockstream has been working on these interoperable blockchains for experimenting with new features that could potentially be added to bitcoin since June of last year, and this is an example of how these new chains can be used to test new features.

    These new proposed opcodes may work as the foundations for new functionalities, ones that could even come to help stop bitcoin exchanges and users from losing stolen funds.

    Use cases

    But while Blockstream is running with the idea, it began with researchers at Cornell.

    In February, researchers Malte Möser, Ittay Eyal and Emin Gun Sirer proposed the idea of bitcoin vaults (implemented with their own version of covenants) where users could pull bitcoin back in the case of a hack. (It then gained new life following the hack on Bitfinex, in which the exchange lost nearly 120,000 BTC).

    "If the attacker can't gain control of the money, it takes away the motivation for stealing it in the first place," Eyal explained.

    But he noted that these two requirements are often conflicting: if a user creates new keys to avoid losing them, that means it's easier for them to be stolen. Meanwhile, if you create a smaller number of total keys, it's easier to lose them.

    While Blockstream tested vaults as a potential use case, there might be other future uses for the covenant scripts, including lending.

    The idea seems to have been dormant for a while and developers were debating its viability even just a couple of months ago.

    But these sidechain tests might mean a step towards implementation.

    And while covenants and vaults had drawn some skepticism before (Peter Todd has questioned whether such a functionality should be built in the infrastructure layer of the code at Scaling Bitcoin), there seems to be optimism that it could work.

    When asked if the new scripts were safe, Bitcoin Core developer Greg Maxwell responded:

    "Trivially so if implemented correctly."

    Disclosure

    Please note that our privacy policy, terms of use, cookies, and do not sell my personal information have been updated.

    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.


    Learn more about Consensus 2024, CoinDesk's longest-running and most influential event that brings together all sides of crypto, blockchain and Web3. Head to consensus.coindesk.com to register and buy your pass now.