Cryptography and Post-Quantum Readiness
The cryptography behind Vara Network and how the network is prepared for the post-quantum era
Vara is prepared for the post-quantum era in three ways. Most of the protocol already rests on quantum-resistant hash functions. Signature schemes can be upgraded without a hard fork. Programs can verify post-quantum signatures today.
Cryptography at a glance
| Layer | What Vara uses |
|---|---|
| Accounts | sr25519, ed25519 and ECDSA signatures |
| Consensus | BABE for block production, GRANDPA for finality, BEEFY for bridge finality |
| Hashing | BLAKE2b-256 and Keccak-256 for state, identifiers and Merkle proofs |
| Programs | Wasm actors with no private keys, addressed by a hash |
| Built-in actors | BLS12-381 operations available to programs |
Vara follows the cryptographic standards of the Polkadot SDK, which are widely deployed across the industry.
Quantum-resistant by design
A large part of the protocol depends only on hash functions:
- Block, transaction and state hashes
- Program, code and message identifiers
- Merkle proofs, including the ones used by the Vara ↔ Ethereum Bridge
256-bit hash functions are considered quantum-resistant, so this layer is ready as it is.
Programs add to this. A program has no private key. It is addressed by a hash and is controlled only by the messages it receives, so its authorization logic is defined entirely in its own code.
Built for crypto agility
Cryptographic standards evolve. NIST finalized its first post-quantum signature standards in 2024, and more are on the way. A network benefits most when it can adopt new schemes as they mature, and Vara is built for that.
- Forkless upgrades. Signature verification is part of the runtime. The runtime is upgraded through governance without a hard fork, so new signature schemes can be introduced the same way.
- Sovereign Layer 1. Vara evolves its account model on its own schedule and does not depend on the roadmap of another chain.
- Programmable authorization. Programs decide for themselves which signatures they accept, so applications can adopt post-quantum schemes right away.
Post-quantum signatures in programs today
A program can require a post-quantum signature before it acts. A wallet or vault program can hold assets and release them only when a message carries a valid signature from a post-quantum key. This works on Vara now, with no protocol change.
The table shows the gas burned by one message that verifies one signature inside a program, measured with gtest and open-source Rust implementations compiled to Wasm.
| Scheme | Standard | Signature size | Gas burned | Share of block gas limit |
|---|---|---|---|---|
| ML-DSA-44 | FIPS 204 | 2,420 bytes | 19.0 billion | 2.5% |
| ML-DSA-65 | FIPS 204 | 3,309 bytes | 29.4 billion | 3.9% |
| SLH-DSA-SHA2-128s | FIPS 205 | 7,856 bytes | 102.8 billion | 13.7% |
| FN-DSA-512 (Falcon) | FIPS 206 (draft) | 666 bytes | 3.7 billion | 0.5% |
For comparison, verifying an ed25519 signature in program code burns 8.7 billion gas. Every scheme in the table fits comfortably within a single block.
The figures are indicative and depend on the implementation and the gas schedule.
The path forward
Signature schemes are the part of the stack that moves to post-quantum standards, on Vara as across the industry. The Polkadot SDK ecosystem is working on hybrid accounts, where an existing account adds a post-quantum key next to its current one and keeps its address, balance and stake.
Vara's architecture lets the network adopt these schemes through a runtime upgrade, so it can be ready before post-quantum signatures are needed.