Refresh When You Wake Up: Proactive Threshold Wallets with Offline Devices

Yashvanth Kondi, Bernardo Magri, Claudio Orlandi, Omer Shlomovits

TL;DR

This paper introduces a way to keep cryptocurrency "threshold wallets" secure even when some devices are offline. By allowing a small group of online devices to refresh the wallet's security and letting offline devices "catch up" later, the authors solve a major usability hurdle in proactive security. They provide a highly efficient solution for the common (2, n) setup and prove a surprising theoretical limit: for larger groups, you can't have offline refreshes without an honest majority being online.

What Problem Does This Paper Address?

In a threshold signature scheme, a private key is split into "shares" across $n$ devices. To sign a transaction, at least $t$ devices must collaborate. This prevents a single point of failure. However, a mobile adversary could slowly compromise one device at a time over months until they have enough shares to steal the funds.

To stop this, we use proactive security: devices periodically "refresh" their shares, generating new random pieces that still represent the same key. The problem? Traditional proactive schemes require almost everyone to be online at the exact same time to perform the refresh. This is a nightmare for real-world users who might have one key share on a phone, one on a laptop, and one in "cold storage" (an offline hardware wallet or paper backup). If the cold storage device must be online to refresh the system, the security benefit of keeping it offline is lost.

Methods

The authors propose a "Refresh When You Wake Up" model. Their approach focuses on two main areas:

  1. The (2, n) Case: For the common scenario where any 2 of $n$ devices can sign (like 2-factor authentication), they developed a "minimally invasive" protocol.
  2. Ledger Synchronization: They use a public blockchain (like Bitcoin or Ethereum) as a "bulletin board." When two online devices sign a transaction, they also post a "refresh package."
    • Nonce Binding: To prevent an attacker from tricking an offline device into deleting its old (good) share for a "junk" update, they bind the refresh package to the cryptographic nonce ($R$) of a valid signature. An offline device only accepts an update if it sees a corresponding valid signature on the blockchain.
  3. Proactive Multiplication: Since ECDSA (the standard for Bitcoin/Ethereum) involves complex multiplication, they adapted "Beaver Triples" and Oblivious Transfer (OT) extensions to be refreshable without extra communication rounds.
  4. The (t, n) Case: For more complex setups ($t > 2$), they used formal cryptographic modeling (Universal Composability) to analyze the limits of this "offline refresh" idea.

Datasets

As this is a cryptography and systems paper, it does not use traditional "training" datasets. Instead, the authors evaluated their protocol by implementing it on top of two state-of-the-art threshold ECDSA libraries:

  • Doerner et al. (2019): An OT-based protocol.
  • Gennaro and Goldfeder (2018): A Paillier-encryption-based protocol.

The performance was tested using Amazon AWS EC2 (t3.small instances) to simulate real-world network conditions.

Key Insights and Ideas

  • Unanimous Erasure is the Hard Part: The biggest challenge isn't creating new shares; it's ensuring everyone agrees on when to delete the old ones. If an attacker can make some devices update while others don't, the wallet can become "out of sync" and the funds could be lost forever.
  • The Blockchain as a Clock: By using the blockchain to signal refreshes, the authors remove the need for devices to have perfectly synchronized internal clocks or constant peer-to-peer connections.
  • The "Dishonest Majority" Wall: The most surprising insight is a formal impossibility proof. They show that for $t > 2$, you cannot have a secure offline refresh if the majority of the online parties are malicious. This means that for large-scale distributed systems, "catching up" isn't just a programming challenge—it's a theoretical impossibility under certain threat models.

Key Results

  • Low Overhead: Proactivizing the Doerner et al. protocol added only 24.2% computational overhead. For the Gennaro and Goldfeder protocol, the overhead was even lower at 14.1%.
  • Zero Extra Rounds: The refresh happens during the normal signing process. It adds no extra rounds of communication between the online devices.
  • Tiny Data Footprint: The refresh packages are small, adding less than 200 bytes to the communication.
  • Usability: An offline device can "wake up" months later, scan the blockchain for signatures it missed, and non-interactively update its internal share to the current version.

Limitations and Future Work

  • The $t > 2$ Gap: The paper proves that for higher thresholds, you need an honest majority online to refresh safely. Future work could explore if "non-standard" trust models or specific hardware assumptions (like TEEs/Enclaves) could bypass this impossibility.
  • Ledger Costs: While the protocol is efficient, it relies on posting data to a ledger. In high-fee environments (like a congested Ethereum network), the cost of frequent refreshes might be a concern for some users.
  • Forward-Secure Channels: The protocol assumes the existence of secure communication channels that remain secure even if a device is later compromised. Implementing these perfectly in the real world remains a challenge.

Summary updated

BibTeX
@inproceedings{kondi2021refresh,
  author = {Yashvanth Kondi and Bernardo Magri and Claudio Orlandi and Omer Shlomovits},
  title = {{Refresh When You Wake Up: Proactive Threshold Wallets with Offline Devices}},
  booktitle = {SP},
  year = {2021},
  doi = {10.1109/sp40001.2021.00067},
}
Figure