A post-quantum Layer 1 with a WASM VM, BFT finality, CRYSTALS-Dilithium 5 cryptography, and smart contract execution. Built from scratch in Rust -- 20 modules, 67 tests, zero forks.
Every component designed from the ground up to resist quantum attacks while delivering production-grade infrastructure with smart contract execution.
CRYSTALS-Dilithium Level 5 (NIST FIPS 204) for all signatures. SHA-3 Keccak-256 hashing with double-hash blocks and Merkle trees. AES-256-GCM + Argon2 wallet encryption.
Deterministic WebAssembly VM powered by Wasmer. DeployContract and CallContract transaction types. Per-contract key-value storage, gas metering, and full execution receipts.
Byzantine Fault Tolerant consensus with 2/3 threshold FinalityVote and CheckpointVote system. Epoch-based validator sets frozen per epoch for deterministic selection.
Frozen validator sets per epoch with stake-weighted deterministic proposer selection. Configurable epoch length (default 32 blocks). Seamless validator rotation.
BlockTree with heaviest-chain rule by cumulative proposer stake. Automatic reorg detection. Finality boundary prevents deep reorganizations. Non-canonical branch pruning.
Cryptographic EquivocationEvidence with 33% stake penalty. Dual Dilithium signatures prove double-signing. Configurable jail duration (default 64 blocks).
SnapshotManifest and StateChunks with Merkle verification. Network protocol for RequestSnapshot, SnapshotManifest, and SnapshotChunk. Fast sync from checkpoint.
Protocol versioning with upgrade-at-height activation. Configurable genesis parameters. ProtocolUpgrade records with height, version, and description fields.
Deploy and call WebAssembly contracts on a quantum-resistant base layer. Full receipts, per-contract storage, and configurable gas limits.
| Operation | Gas Cost |
|---|---|
| Base Transaction | 21,000 |
| Contract Deployment | 32,000 |
| Contract Call | 2,600 |
| Storage Read | 200 |
| Storage Write | 5,000 |
| Log Emit | 375 |
| Per Byte (data) | 16 |
| Memory Read (byte) | 3 |
| Memory Write (byte) | 6 |
| Host Call Overhead | 40 |
| WASM Default Op | 2 |
| WASM Control Op | 4 |
| WASM Memory Op | 8 |
| WASM Call Op | 12 |
| WASM Numeric Op | 3 |
Block gas limit: 10,000,000. EIP-1559-style base fee with configurable change denominator. Receipts include status, gas_used, logs, and return_data.
# Deploy a WASM contract to CURS3D
curl -X POST http://localhost:8080/api/tx/submit \
-H "Content-Type: application/json" \
-d '{
"chain_id": "curs3d-devnet",
"kind": "DeployContract",
"from": [...],
"sender_public_key": [...],
"to": [],
"amount": 0,
"fee": 1000,
"nonce": 1,
"gas_limit": 500000,
"data": "<wasm_bytecode_hex>",
"timestamp": 1234567890,
"signature": {...}
}'
# Call a deployed contract
curl -X POST http://localhost:8080/api/tx/submit \
-H "Content-Type: application/json" \
-d '{
"chain_id": "curs3d-devnet",
"kind": "CallContract",
"from": [...],
"to": [<contract_address>],
"amount": 0,
"fee": 1000,
"gas_limit": 200000,
"data": "<function_selector>",
...
}'
# Response receipt:
# {
# "ok": true,
# "data": {
# "status": "Success",
# "gas_used": 53216,
# "logs": [],
# "return_data": "..."
# }
# }
10 endpoints with full CORS support, auth token gating, and Server-Sent Events. Query the chain, look up accounts, submit transactions -- all from any HTTP client.
A vertically integrated protocol stack designed for security, performance, and correctness. 20 modules, zero external blockchain dependencies.
use pqcrypto_dilithium::dilithium5::*;
use sha3::{Sha3_256, Digest};
pub struct Wallet {
pub address: String,
pub public_key: PublicKey,
secret_key: SecretKey,
}
impl Wallet {
pub fn new() -> Self {
let (pk, sk) = keypair();
let mut hasher = Sha3_256::new();
hasher.update(pk.as_bytes());
let hash = hasher.finalize();
let address = format!(
"CUR{}", hex::encode(&hash[..20])
);
Wallet { address, public_key: pk, secret_key: sk }
}
pub fn sign(&self, msg: &[u8]) -> SignedMessage {
detached_sign(msg, &self.secret_key)
}
}
Configurable genesis. Fair distribution. Predictable issuance. All amounts in microtokens (1 CUR = 1,000,000 microtokens).
BFT finality engine, Dilithium 5 wallets, fork choice rule, provable slashing, WASM VM with gas metering, DeployContract + CallContract, epoch-based validator sets, state sync, protocol governance, REST API with SSE, Block Explorer, Docker, CI pipeline. 67 tests, 20 modules, 7 website pages.
Contract SDK with Rust and AssemblyScript toolchains. Public testnet with faucet. Contract registry and verification. Token standards (CUR-20, CUR-721). Light client protocol.
Genesis block with community validator onboarding. Third-party security audit. Ecosystem tooling release. Bridge infrastructure for cross-chain assets.
Cross-chain bridges, on-chain governance, DeFi primitives, advanced VM features, zero-knowledge proof integration, and community grant program.
Multi-stage Docker build with docker-compose for instant 2-node network setup. Minimal image size, reproducible builds.
Automated pipeline: cargo check, test, clippy (zero warnings), and fmt verification on every push and pull request.
TCP RPC on port 9545 for CLI tooling. HTTP REST API on port 8080 with CORS, auth tokens, and Server-Sent Events for browsers and apps.
The quantum-resistant blockchain with smart contracts is live on devnet. Deploy contracts, run validators, and build the next generation of decentralized applications.