Astrape: Anonymous Payment Channels with Boring Cryptography

Yuhao Dong, Ian Goldberg, Sergey Gorbunov, Raouf Boutaba

TL;DR

This paper introduces Astrape, a novel payment channel network (PCN) protocol that achieves strong anonymity and balance security using only standard, "boring" cryptographic primitives like hash functions and signature schemes. This approach simplifies implementation and security proofs, offering a practical and efficient alternative to existing anonymous PCNs that often rely on complex, custom cryptography.

What Problem Does This Paper Address?

Blockchain cryptocurrencies, while offering decentralization, face significant scalability limitations. Payment channel networks (PCNs) aim to address this by moving most transactions off-chain, using the blockchain only for final settlement. However, existing PCN designs, particularly those based on Hash Time-Locked Contracts (HTLCs), suffer from weak privacy. Even though transactions are off-chain, the underlying cryptographic mechanisms can reveal linkable information, compromising user anonymity. While some solutions exist to improve PCN privacy, they often require specialized, complex cryptographic constructions that are difficult to implement and maintain. This paper tackles the challenge of building an anonymous PCN that is both secure and practical, using only readily available cryptographic building blocks.

Methods

Astrape's core innovation lies in its novel composition of two existing, simpler PCN primitives: XorCake and HashOnion.

  • XorCake: This primitive provides relationship anonymity (meaning an adversary can't link two transactions if they share at least one honest intermediary) but lacks balance security. It's vulnerable to a "state-mismatch attack" where a malicious sender can cause intermediaries to lose money.
  • HashOnion: This primitive offers balance security but sacrifices relationship anonymity, particularly during the unlock phase.

Astrape combines these by embedding XorCake's anonymity mechanism within HashOnion's balance-securing structure. It uses a unique construction that leverages "inconsistency witnesses" to detect and penalize state-mismatch attacks without resorting to zero-knowledge proofs or other complex cryptography. This allows Astrape to achieve strong anonymity and balance security by ensuring that an inconsistency witness can only be generated and propagated if the sender is malicious, thus preserving anonymity for honest senders. The protocol is formalized using a Generalized Multi-Hop Locks (GMHL) model, which abstracts away blockchain-specific details.

Datasets

Not discussed in the paper. The paper focuses on theoretical construction and simulation on a real-world network graph.

Key Insights and Ideas

  • "Boring Cryptography" is Sufficient: The paper demonstrates that strong anonymity and security in PCNs can be achieved using only standard cryptographic primitives (hash functions and signature schemes), challenging the notion that complex, custom cryptography is a prerequisite.
  • Composition for Security: By cleverly combining a privacy-focused but insecure primitive (XorCake) with a secure but non-private primitive (HashOnion), Astrape achieves both desired properties. The key is to ensure the privacy-breaking aspects of HashOnion are only triggered by malicious behavior.
  • Inconsistency Witnesses as a Security Mechanism: The use of "inconsistency witnesses" to detect and handle state-mismatch attacks is a novel approach to enforcing balance security without complex zero-knowledge proofs.
  • Practicality Through Simplicity: Using standard primitives leads to simpler implementations, easier security proofs, and better performance, making anonymous PCNs more accessible and deployable.

Key Results

  • Provable Security: Astrape is proven to achieve relationship anonymity and balance security against a powerful adversary.
  • Competitive Performance: Despite using a composition that might seem less efficient asymptotically, Astrape's operations on average take less than 10 milliseconds of computation and 1 KB of communication on commodity hardware. This performance is competitive with, and often superior to, state-of-the-art private PCN constructions.
  • Flexibility: Astrape's reliance on generic cryptographic primitives makes it easily portable to different blockchains and PCN implementations.
  • Scalability: Simulations on a real-world Lightning Network graph show that Astrape can support high transaction throughput, with average path lengths being short enough to mitigate the impact of its worst-case overhead.

Limitations and Future Work

  • Script Size on Limited Blockchains: For blockchains with restrictive scripting languages (like Bitcoin Cash, which lacks recursion), Astrape's lock scripts can grow linearly with the number of hops. While manageable for typical path lengths, this could be a concern for very long paths.
  • Worst-Case Overhead: The HashOnion component, while crucial for balance security, introduces a higher worst-case overhead compared to the average case.
  • Side-Channel Attacks: The paper focuses on relationship anonymity, acknowledging that other privacy aspects like timing and value anonymity are not directly addressed and require further research.
  • Future Work: The authors suggest exploring constant-space lock sizes by investigating more sophisticated cryptographic commitment mechanisms like Merkle trees to avoid linearly growing inconsistency witnesses. They also highlight the need for more robust notions of privacy that account for side-channel attacks.

Summary updated

BibTeX
@article{dong2022astrape,
  author = {Yuhao Dong and Ian Goldberg and Sergey Gorbunov and Raouf Boutaba},
  title = {{Astrape: Anonymous Payment Channels with Boring Cryptography}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2022},
}

Loading related content...

Figure