Skip to content

Lightweight Rust BlockDAG node for immutable media provenance & trust-anchored stablecoins. Powered by Vesper consensus — leaderless, sub-second finality, 10k–15k TPS on a Raspberry Pi. Real vs AI detection via pHash anchoring + V-STABLE minting gated by on-chain authenticity scores. No frameworks, pure Rust, <1GB footprint.

Notifications You must be signed in to change notification settings

MeridianAlgo/VeriChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VeriChain 2.0 (verify-node)

Project Name: VeriChain 2.0
Repo: MeridianAlgo/verify-node
Status: Pre-Alpha (Architecture Validation)

A purpose-built, ultra-lightweight blockDAG node designed to solve content provenance and decentralized stablecoin issuance.

Architecture

  • Language: Rust (async tokio, libp2p, sled)
  • Consensus: Vesper (Leaderless, round-less PoS BlockDAG)
  • Storage: Embedded Sled DB (No external dependencies)
  • Networking: Libp2p Gossipsub

Getting Started

Prerequisites

  • Rust (latest stable)
  • Git

Build & Run

cargo run --release

To run a local cluster of 3 nodes:

./scripts/spawn_cluster.ps1

The node will start, generate keys, initialize storage in data/, and begin producing blocks (visualized with a real-time spinner).

Roadmap

This roadmap outlines the path from the current skeletal implementation to a production-ready testnet.

Core Consensus & DAG (1–10)

  1. [x] Full Vesper Parent Selection: Implement VRF-weighted random walk over current tips.
  2. [x] Temporal Density Weight: Implement W = stake * e^(-lambda * avg_delta_t) with caching.
  3. [x] Weight Memoization: Efficient cumulative weight calculation and invalidation.
  4. [x] Virtual Ordering: Deterministic linearization via Pivot Chain & Causal Rank.
  5. [x] Tip Set Management: Persistent storage and automatic promotion/demotion logic.
  6. [x] Genesis Block: Bootstrap logic for cold starts.
  7. [x] Block Validation: Full pipeline (signatures, parents, metadata bounds, timestamps).
  8. [x] Re-org Handling: Rollback support in Sled via state deltas.
  9. [x] Rate Limiting: Block proposal limits based on stake.
  10. [x] Finality Detector: Depths-based probabilistic finality.

Provenance Layer (11–18)

  1. [x] pHash Anchoring: img_hash & image crate integration for visual similarity.
  2. [x] Lineage Trees: Parent/Child content tracking with bi-directional indexing.
  3. [x] Dynamic Trust Score: Stake-weighted aggregation of attestations.
  4. [ ] Validation: Conflict detection for attestations.
  5. [x] Challenge Txs: Slash false attestations.
  6. [x] Phash Bloom Filter: Fast existence checks for content indexing.
  7. [ ] Metadata Bounds: Enforce size limits in validation pipeline.
  8. [x] Proofs: Exportable Merkle paths.

V-STABLE Stablecoin Layer (19–23)

  1. [x] Supply Tracking: Persisted in Sled.
  2. [x] Gated Minting: Trust Score thresholds.
  3. [x] Proportional Minting: Formula refinement and algorithmic rebalancing.
  4. [x] Burn Logic: Reduce supply and balance.
  5. [x] Transfers & Persistence: Persistent account balances and transfer primitive.
  6. [x] Fee Burn Logic: Fees removed from circulation.

Networking & Distribution (24–28)

  1. [x] Bootstrap: Fixed peer seeds & bootnode dialing.
  2. [x] Gossipsub: Immediate broadcast and receiver validation.
  3. [ ] Peer Scoring: Reputation management.
  4. [x] Sync Protocol: Request/Response for history.
  5. [x] Local Testnet: Script for multi-node spawn (spawn_cluster.ps1).

Security (29–35)

  1. [x] Slashing: Double-proposal detection.
  2. [x] Stake Aging: Prevent nothing-at-stake attacks.
  3. [x] Min Stake: Thresholds for network participation.
  4. [x] Signature Verification Batching: Transaction signatures + Batch validation.
  5. [x] Merkle Proofs: Efficient state & transaction inclusion proofs.
  6. [x] DoS Protection: Fees/PoW stub.
  7. [x] Benchmarks: Criterion for TPS/Latency.
  8. [ ] Integration Tests: Large-scale DAG simulation.
  9. [ ] Documentation: Full architecture diagrams.

About

Lightweight Rust BlockDAG node for immutable media provenance & trust-anchored stablecoins. Powered by Vesper consensus — leaderless, sub-second finality, 10k–15k TPS on a Raspberry Pi. Real vs AI detection via pHash anchoring + V-STABLE minting gated by on-chain authenticity scores. No frameworks, pure Rust, <1GB footprint.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published