A Layer 1 protocol written from scratch in Rust with NIST-standardized post-quantum cryptography, BFT consensus, WASM smart contracts, and an EIP-1559 fee market. Every line of code is original. Every claim is verifiable.
9 modules. No fork of Ethereum, Cosmos, or Substrate. Every component is purpose-built for post-quantum security.
Every feature listed below exists in the codebase today. No roadmap promises — this is what the code does right now.
CRYSTALS-Dilithium Level 5 (NIST FIPS 204) for block and transaction signatures. Future-proof against Shor's algorithm. Tested with 5 crypto unit tests.
Wasmer 5 with Cranelift backend. Per-instruction fuel metering via middleware injection. 11 host functions for storage, logs, and input. Tested with 8 VM unit tests.
Signed FinalityVotes accumulated per block. Finality triggers at 2/3 of total staked amount. Epoch-frozen validator sets prevent mid-epoch manipulation. 8 consensus tests.
Dynamic base_fee_per_gas adjusts each block toward 50% gas target. Separate max_fee and priority_fee. Base fee burned, priority fee to proposer. Gas refunds on unused allocation.
BlockTree tracks all known blocks including forks. Heaviest-chain rule by cumulative proposer stake. Automatic reorg with finality boundary. Non-canonical pruning. 5 blocktree tests.
EquivocationEvidence carries two signed block headers at the same height. Cryptographically verified before penalty. 33% stake slash + 64-block jail. Evidence persisted to disk.
Full snapshot with bincode-serialized state, chunked at 256KB. Each chunk Merkle-proved against manifest root. Snapshot preferably based on finalized height. Network protocol included.
Protocol version in every block header. Upgrade activation at configured height. Network topic derived from chain_id + version. Incompatible peers automatically filtered.
Full transparency. Here's what's built and what remains before mainnet. No hand-waving.
Not simulated. The VM compiles WebAssembly with Cranelift, injects fuel counters via middleware, and charges per-instruction. Contracts with unmetered loops are rejected at deploy time.
vm/gas.rs)| Operation | Gas |
|---|---|
| Base Transaction | 21,000 |
| Contract Deploy | 32,000 |
| Contract Call | 2,600 |
| Storage Read | 200 |
| Storage Write | 5,000 |
| Log Emit | 375 |
| Per Byte | 16 |
| Host Call Overhead | 40 |
| WASM Loop Tick | 50 |
Block gas limit: 10,000,000. Receipts include gas_used, effective_gas_price, priority_fee_paid, base_fee_burned, gas_refunded, logs[], and return_data.
;; Counter contract — real CURS3D WASM
;; Imports the host functions, increments
;; a value in storage, emits a log event.
(module
(import "curs3d" "storage_get"
(func $get (param i64) (result i64)))
(import "curs3d" "storage_set"
(func $set (param i64 i64)))
(import "curs3d" "emit_log"
(func $log (param i64 i64)))
(import "curs3d" "consume_gas"
(func $gas (param i64)))
(memory (export "memory") 1)
(func (export "curs3d_call")
(result i64)
(local $v i64)
;; read slot 0
(local.set $v
(call $get (i64.const 0)))
;; increment
(local.set $v
(i64.add (local.get $v)
(i64.const 1)))
;; write back
(call $set
(i64.const 0) (local.get $v))
;; emit event
(call $log
(i64.const 1) (local.get $v))
(local.get $v))
)
HTTP REST on port 8080 with configurable CORS, optional bearer token auth, 1MB body limit, and 128 max concurrent connections. TCP RPC on port 9545 for CLI.
use pqcrypto_dilithium::dilithium5::{
DetachedSignature, PublicKey,
SecretKey, detached_sign,
keypair, verify_detached_signature,
};
pub struct KeyPair {
pub public_key: Vec<u8>,
pub secret_key: Vec<u8>,
}
impl KeyPair {
pub fn generate() -> Self {
let (pk, sk) = keypair();
KeyPair {
public_key: pk.as_bytes().to_vec(),
secret_key: sk.as_bytes().to_vec(),
}
}
pub fn sign(&self, msg: &[u8])
-> Signature {
let sk = SecretKey::from_bytes(
&self.secret_key
).expect("invalid key");
Signature(
detached_sign(msg, &sk)
.as_bytes().to_vec()
)
}
}
All parameters are set in genesis.json and verifiable on-chain. 1 CUR = 1,000,000 microtokens.
Full L1 protocol with BFT consensus, WASM VM, EIP-1559 fees, state sync, epoch management, provable slashing, encrypted wallets, REST API, block explorer, Docker, CI/CD. 79 tests across 9 modules.
Contract SDK (Rust + AssemblyScript). Public testnet with faucet. Indexed receipts and log filters. Observability stack (Prometheus, structured logs). Peer scoring and anti-spam.
External audit of consensus, VM, and cryptography. State trie upgrade (MPT or Verkle). Fuzzing and soak tests. Mainnet genesis with community validator onboarding.
Cross-chain bridges, on-chain governance, token standards (CUR-20, CUR-721), DeFi primitives, light client protocol, community grants.
docker-compose spins up a 2-node network in seconds. Minimal image. Reproducible builds. All ports exposed (P2P 4337, HTTP 8080, RPC 9545).
Every push runs: cargo check, cargo test (79/79), cargo clippy (zero warnings), cargo fmt --check. Merge blocked on failure.
sled embedded DB with 10 trees, schema v4, auto-migration from earlier versions. Full state rebuild on restart from canonical chain.
Every claim on this page maps to code in the repository. Clone it, build it, run the tests, read the source.