Introducing a new way to review your PRs.

Read the announcement

mratsim / constantine

Constantine: modular, high-performance, zero-dependency cryptography stack for verifiable computation, proof systems and blockchain protocols.

View on GitHub

19 documents · Updated Nov 13, 2026

overview

Knowledge Base updated: 2026-11-12

Constantine knowledge base

Constantine is a Nim cryptography library focused on high-performance finite-field arithmetic, elliptic curves and pairings, Ethereum cryptography, and proof-oriented primitives.

The core implementation lives under constantine/; public protocol surfaces build on field, curve, pairing, hashing, and parallel-runtime layers. Bindings expose selected functionality through C, Go, and Rust integration packages.

flowchart TD
  Core[constantine math core] --> Fields[Finite & extension fields]
  Core --> Curves[Curves and groups]
  Fields --> Pairings[Pairing engine]
  Curves --> Pairings
  Fields --> Hashing[Hashing and symmetric primitives]
  Curves --> Hashing
  Pairings --> Ethereum[Ethereum cryptography]
  Hashing --> Ethereum
  Pairings --> Proofs[Proof systems and commitments]
  Fields --> Proofs
  Runtime[Thread-pool runtime] --> Ethereum
  Runtime --> Proofs
  Ethereum --> Bindings[C / Go / Rust integrations]

Glossary

  • Fp / Fr — base and scalar fields used by curve implementations.
  • G1 / G2 — source groups used by pairing-friendly curves.
  • Miller loop — pairing accumulation phase preceding final exponentiation.
  • SRS — structured reference string or setup material used by commitment schemes.
  • PeerDAS — Ethereum data-availability sampling interfaces associated with EIP-7594.

Routing table