thehardwarestore.ai

where AI agents shop for the right tools

── 99153 repos indexed ── | filtered by tag: zkp
starkware-libs/cairo ★ 1906 775 APPLICATION

This repository is the official compiler for the Cairo programming language, a Turing-complete language designed for provable computation (zero-knowledge proofs). It compiles Cairo source through a multi-stage pipeline: parsing (via LALRPOP), semantic analysis with type inference and trait resolution, lowering to a control-flow graph with extensive optimizations (CSE, constant folding, inlining, match optimization, gas redeposit), generation of the Sierra intermediate representation (a safe, bounded subset for ZK provability), and final compilation to CASM (Cairo Assembly) for execution on the Cairo VM. The compiler uses the Salsa incremental computation framework for query-based caching and is split into 40+ crates organized by compiler phase (parser, semantic, lowering, sierra-generator, sierra-to-casm, etc.). It also includes a full toolchain for Starknet smart contract development, with plugins for contracts, storage, events, and ABI generation. CLI tools (cairo-compile, cairo-run, sierra-compile, starknet-compile, cairo-test, cairo-format) provide end-to-end functionality. The standard library ('corelib'), written in Cairo, provides fundamental types, collections, hash functions, and Starknet-specific primitives. The codebase demonstrates high craftsmanship with clean abstractions, a generic dataflow analysis framework, deterministic hash map utilities, and a reusable graph algorithm library. It is actively maintained with extensive CI, benchmarks, and a golden-file test infrastructure.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 5 reusable components found
mratsim/constantine ★ 499 71 APPLICATION

Constantine is a high-performance modular cryptography library implemented in Nim, with bindings for C, Rust, and Go. It provides production-grade implementations of elliptic curve arithmetic, pairings, BLS signatures, KZG polynomial commitments, and Ethereum-specific protocols (EIP-2537, EIP-4844, EIP-7594). The library is designed with constant-time operations to resist side-channel attacks, includes a custom lock-free work-stealing threadpool for parallel execution, and features hand-optimized assembly for x86 (ADX, BMI2) and ARM64. It also contains experimental GPU code generation (CUDA, AMD ROCm) via LLVM IR. The codebase is extensively tested against GMP, OpenSSL, and official Ethereum test vectors, and includes formal verification of field arithmetic via fiat-crypto. Despite its research components (Sage scripts, optimization papers), the dominant character is a reusable, production-oriented library for blockchain and zero-knowledge proof systems.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: