Skip to main content

Hydra Head protocol documentation

The Hydra Head protocol is a layer 2 scaling solution for Cardano rooted in peer-reviewed research that increases transaction throughput and ensures cost efficiency while maintaining rigorous security.

Low latency

L2 confirmation depends on validation, networking, and signatures from all parties; returning funds to L1 also takes chain time

High throughput

Transactions are replicated only among protocol participants, reducing data processing and increasing throughput

Low fees

Low processing needs by protocol participants and configurable protocol parameters enable even zero-fee use cases

Isomorphic state channels

Cardano transaction formats and ledger validation are reused off-chain, with head-specific parameters and limitations

Censorship resistance

An honest party can use signed snapshots to contest an outdated close, provided it monitors Cardano within the contestation period

Based on thorough research

Hydra builds on peer-reviewed research, an executable specification, and implementation tests

Provides a scalable, secure, and sustainable platform for Cardano, meeting the growing demands of its applications and users. 

Why Hydra Head?

Traditional blockchain systems face scalability limitations due to the trade-off between decentralization, security, and scalability (the blockchain trilemma). Cardano's consensus algorithm, while efficient, still requires massive global replication of state changes, potentially increasing transaction settlement times during peak hours.

The Hydra Head protocol aims to enhance the flexibility of decentralization levels on a case-by-case basis. Not every transaction requires global consensus to be considered final. For instance, buying a croissant or lending money to a friend doesn’t need the involvement of a central bank. Many transactions and arrangements can occur within a single Hydra head, with deposits, decommits, and final settlement recorded on the main chain.

The protocol facilitates frictionless state transfer between the main chain and individual heads, bypassing the 20-second block time limit. This enables state evolution at a pace approved by involved parties, while funding and settlement remain subject to L1 constraints.

How it works

A fixed group of parties initializes an empty head on Cardano.
Deposits add funds to an open head; decommits return funds to Cardano.
Parties validate transactions and sign snapshots without an L1 transaction for each payment.
Close, allow time to contest, then distribute outputs in one or more fanout transactions.

A fixed group of parties opens an empty Hydra head on Cardano. Each party runs a node and agrees on the head parameters.

Open source

The Cardano developer community has full access to the source code for greater collaboration and innovation. Numerous developers are actively engaged in its continuous improvement and iteration.

Interoperable

Designed for seamless integration with existing and future Cardano infrastructure, promoting a cohesive ecosystem and allowing for easy integration with existing DApps and wallets.

Isomorphic

Reuse Cardano transaction formats and script validation on L2. L1 consensus, staking, and governance remain outside the head.

Customizable

Configure fees and execution budgets per head while keeping outputs compatible with L1 settlement.

Efficient

Facilitates multi-party agreements, cost-effective micropayments, and offers near-instant transaction finality.

/ CASE STUDIES

Case studies

From enabling micropayments with near-zero fees and instant processing to boosting the performance of decentralized finance (DeFi) applications and enhancing real-time gaming experiences, Hydra can enhance user engagement across various sectors. Discover how Hydra’s cost-efficient, scalable, and low-latency transactions can address real-world problems and support innovative solutions on the Cardano platform.

View case studies
Case studies blocks