Polkassembly Logo

Head 1
Head 3
Head 4
Create Pencil IconCreate
TRACKS
ORIGINS
Report an issueNeed help with something?
Foot 1
Foot 2
Foot 3
Foot 4
OpenGov
View All Discussion

Research Project: Trustless Cardano bridge as a Polkadot/JAM service

5FLVfp...LDQu
18 hours ago

Dear Polkadot Community,

Feedback on the following research project would be greatly appreciated.

Short description

This project proposes an investigation into five technical bottlenecks hindering the implementation of a Cardano block importer as a Polkadot/JAM service, thereby enabling the creation of a trustless bridge between the Cardano and Polkadot ecosystems. Cardano, recognized as one of the top ten most isolated blockchains, presents a unique integration challenge. Overcoming these obstacles will showcase the flexibility and strength of the Polkadot/JAM architecture and serve as a blueprint for creating trustless bridges for a broad range of blockchain networks.

Context

The Polkadot ecosystem is undergoing a major transition to Join-Accumulate Machine (JAM) architecture, designed to deliver a unique combination of scalability and coherency. At the heart of JAM lies PolkaVM, a RISC-V-based virtual machine capable of executing code at near-native hardware speeds, thereby enabling a wide range of innovative use cases. The JAM paper recently reached version 0.7.0, with only minor refinements and optimizations anticipated before the 1.0.0 release. The official launch of JAM 1.0.0—and Polkadot’s migration to this new architecture—is tentatively expected within the next year.

Problem

To accelerate adoption of the innovative JAM architecture, the Polkadot ecosystem would benefit from high-impact “hero” use cases that showcase its full capabilities and test its limits. Trustless cross-blockchain bridges represent one such compelling use case. These bridges can be realized by integrating full nodes of other blockchains as Polkadot/JAM services. Since running a full node is a highly computationally intensive task, this approach provides an ideal opportunity to demonstrate both the architectural advantages of JAM and the high performance of PolkaVM.

Proposal

Developing JAM services requires compiling PolkaVM binaries, a process currently supported for Rust and C/C++ via the LLVM toolchain. As a result, integrating blockchain full nodes written in these languages presents the most straightforward path for exploration.

A central element of this proposal is a prototype Cardano Node implemented in C++, https://github.com/r2rationality/turbocardano, which can be compiled into a PolkaVM binary (unlike the traditional Cardano Node, which is written in Haskell).

Additionally, the team behind this proposal is actively developing a C++ JAM implementation, https://github.com/r2rationality/turbojam, providing the necessary expertise and in-depth understanding of the JAM protocol required for this research.

Scope

A straightforward compilation of the Cardano block importer into PolkaVM bytecode is not sufficient to deploy it as a JAM service. Several critical constraints must be investigated and addressed:

  1. PolkaVM Memory Limitations. PolkaVM restricts each program to 4GB of addressable RAM, while a typical Cardano Node requires over 16GB of memory—primarily consumed by the active UTXO set and account information. This proposal will investigate advanced strategies for memory management, such as optimizing the balance between in-memory and on-disk storage, and employing more compact data structures.
  2. File-Based to Key-Value Storage Translation. Cardano Node stores raw blockchain data, indices, and state snapshots as files, whereas JAM DA utilizes key-value storage. The research will determine whether a direct one-to-one mapping of files to key-value pairs is viable, or if further optimization is needed for efficiency and performance.
  3. Task Scheduling Adaptation. Cardano Node typically uses a push model, receiving block announcements from peers over open connections. Within the JAM architecture, this must be reformulated into a pull model compatible with JAM’s Refine steps. The investigation will focus on practical approaches to this scheduling shift.
  4. JAM Code Size and Instruction Limits. JAM services are currently limited to a maximum code size of 4 million bytes and 5 billion instructions per Refine step. This may necessitate splitting the node implementation across multiple JAM services. The research will assess whether this division is required, and, if so, propose the optimal approach.
  5. JAM DA Storage Costs. Storing the full Cardano blockchain in JAM DA may be cost-prohibitive, as the raw blockchain data exceeds 200 GB and serialized state snapshots approach 4 GB. The investigation will evaluate whether standard compression algorithms can reduce storage costs to feasible levels, or if additional measures—such as pruning finalized blocks—are required.

Deliverables

  • Comprehensive Research Report: A detailed report documenting all investigations conducted, the results obtained, and the most promising solutions identified for each technical challenge.
  • Open Source Codebase: Source code for all experiments and selected solutions, published under the Apache 2.0 license, to encourage community collaboration and transparency.
  • Draft Bridge Proposal: An initial proposal outlining the design and requirements for a trustless Cardano/JAM bridge, informed by the research findings.

Budget

The duration of each investigation may vary, with some directions potentially completed within a month, while others may require multiple iterations over the course of up to 12 months. Additionally, there are significant fixed costs associated with project setup and preparation of final documentation. As such, allocating less than 1 FTE over 12 months would introduce a high risk of project failure.

Accordingly, the proposed budget is 175,500 USDC (150,000 Euro**** at the current EUR/USD rate of 1.17), allocated as follows:

  • Personnel: 1 FTE (35 hours per week) for 12 months – 130,000 Euro
  • Cloud Infrastructure & Miscellaneous Expenses: 20,000 Euro

Comments (0)

Comments are restricted to accounts with an on-chain verified identity.

PleaseLogin to comment

Comments (0)

Comments are restricted to accounts with an on-chain verified identity.

PleaseLogin to comment

Help Center

Report an Issue
Feedback
Terms and Conditions
Github

Our Services

Docs
Terms of Website
Privacy Policy

A House of Commons Initiative.

Polka Labs Private Limited 2025

All rights reserved.

Terms and ConditionsTerms of Website
Privacy Policy