dApp access
Historical Foundation & Mathematical Treatise

The Codex of Marginalia

"Proven in the margins. Hidden from the crowd."

From Pierre de Fermat’s 1637 margin notes in Diophantus’ Arithmetica to Groth16 zero-knowledge SNARKs on Robinhood Chain Orbit L2: how mathematical truth exists without requiring public revelation.

Chapter I

The Margin of Diophantus (1637)

In the winter of 1637, the French magistrate and mathematician Pierre de Fermat was annotating Claude Gaspard Bachet’s Latin translation of Diophantus’ Arithmetica. Beside Problem 8 in Book II, Fermat famously inscribed:

ARCHIVAL ARTIFACT · CODEX FOLIO 61V
TOULOUSE ARCHIVES · 1637
Pierre de Fermat's marginal note in Diophantus' Arithmetica (1637) illuminated with cryptographic circuits
LOC: BOOK II · PROBLEM 8 (Xⁿ + Yⁿ ≠ Zⁿ)

FIG. 1.1: Diophanti Alexandrini Arithmetica (Bachet translation, 1621), annotated 1637.

HANC MARGINIS EXIGUITAS NON CAPERET
"Cubum autem in duos cubos, aut quadrato-quadratum in duos quadrato-quadratos, et generaliter nullam in infinitum ultra quadratum potestatem in duos eiusdem nominis fas est dividere: cuius rei demonstrationem mirabilem sane detexi. Hanc marginis exiguitas non caperet."

[Translation]: "I have discovered a truly marvelous demonstration of this proposition, which this margin is too narrow to contain."

Fermat possessed mathematical certainty of truth, but lacked the space to reveal the calculation. For 358 years, the world sought to reconstruct what lay in that narrow border until Andrew Wiles settled the proof in 1995.

MARGINALIA transposes Fermat's timeless paradox into modern cryptography: using Zero-Knowledge proofs, one can demonstrate computational correctness without publishing transaction histories or balances on public block explorers.

Chapter II

Cryptographic Primitives & Circuit Design

The privacy engine of MARGINALIA is governed by Groth16 zero-knowledge SNARKs computed over the BN254 (alt_bn128) elliptic curve pairing:

Poseidon Hash Function

Optimized for arithmetic circuits with minimal S-box complexity (t=3 for tree leaves, t=4 for nullifiers).

Folio Merkle Tree (2²⁰)

Sparse incremental Merkle tree supporting up to 1,048,576 private notes on Robinhood Chain Orbit L2.

Association Set Buffer

A 16-root sliding window on MagistrateRegister ensuring zero illicit contagion without deanonymizing clean users.

Single-Use Wax Seal

Nullifier derivation H(sk, ρ) ensures mathematical double-spending prevention.

Visual Identity

Official Protocol Emblems

Vector SVG · High Fidelity
Obsidian Seal (Dark)

Primary emblem for dark interfaces, navbar branding, and on-chain dApp.

Download SVG
Parchment Seal (Light)

Inverted emblem for browser favicon, official audit certificates, and light documents.

Download SVG

Ready to explore the shielded pool?

Inscribe notes or synthesize proofs on Robinhood Chain.

Launch Shielded dApp