Skip to content

allexanderbergmans/polka-chain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polka L1 Blockchain

NOT DONE!

Polka is a high-performance Layer 1 blockchain built entirely in Zig. It is designed for extreme predictability, deterministic execution, and maximum hardware utilization.

Unique Tech Stack

  • Language: Zig - chosen for its lack of hidden control flow, explicit memory management, and powerful comptime features.
  • Consensus: Lumina BFT - a custom variant of the pipelined HotStuff algorithm.
  • Virtual Machine: AetherVM - a bespoke register-based bytecode interpreter designed for blockchain syscalls.
  • Storage: Stardust-LSM - a custom Log-Structured Merge-tree storage engine optimized for Merkle-Patricia tries.

Getting Started

Prerequisites

Building

zig build

Running

./zig-out/bin/polka start

Testing

zig build test

Project Structure

  • src/main.zig: Application entry point and CLI handler.
  • src/node/: Core node logic and consensus engine.
  • src/net/: P2P networking and gossip protocols.
  • src/vm/: The PolkaVM execution engine.
  • src/storage/: State storage and indexed block database.
  • src/crypto/: Hashing and signature verification.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Zig 86.9%
  • Shell 13.1%