⬢ Gram

Research prototype · no value · no audit

A payment network with no elliptic curves and a ring that hides who paid.

Gram is an attempt at the properties people want from a private currency — unlinkable recipients, signer anonymity, quantum resistance — built on lattice ring signatures instead of the discrete-logarithm assumptions every deployed chain still relies on.

This is not a cryptocurrency. There is no launched network, no token, no sale, and no security claim. It is a working prototype whose code, tests and failures are all public.

Status, stated plainly

Most project pages put the limitations at the bottom. This one puts them first, because the honest state of the system is the most useful thing on the page.

Working

  • Post-quantum proofs. Module-SIS/module-LWE lattices; the ring signature is a careful transcription of SMILE (ePrint 2021/564).
  • Private spends at the signature level. 1,024-member ring; the proof does not reveal which member signed.
  • One-time recipient addresses. A scanner cannot link two payments to the same person.
  • Two implementations. A readable Python reference and a fast Rust port that verify each other's proofs.
  • Chain, node, sync, storage. Blocks, finality, difficulty, checkpoints, a pruned storage mode, and a 100-node test.
  • Three desktop applications. A wallet, a node and a miner for Windows, macOS and Linux, as three separate programs with their own data directories — none starts or controls another. CI builds an installer for each platform and runs it, so a package that cannot start fails the build. They are unsigned prototypes, not releases.

Not working, or not proven

  • Anonymity is much smaller than it looks. The ring is 1,024 keys, but in the shipped protocol the effective set is the ring members whose note holds the declared value — and that is public. For an unusual amount it is 1. Owner decision D15 (2026-12-04) chose the replacement: unfiltered 1,024-key rings, value-blind decoys, and a coin-binding layer so the set becomes the eligible pool. That is designed and reviewed as a plan only — not activated, not proven, and not a claim about the shipped software.
  • Amounts are visible in the shipped protocol. The proof is witness-hiding; the amounts are not hidden, and the old class-row construction could not hide them: every check it could make on a committed message was diagonal in the 32 slots of the ring, while range and balance are not (the attack brief states that obstruction). Owner decision D15 (2026-12-04) selected a different route: amounts are slot-0 committed values in a new statement, with a separate coin-binding layer that attaches value to notes and unfiltered rings that no longer need the value bound. The plan, its assumptions and its reviews are in the repository, and all of them say the same thing: design work only — no code path, no activation, no confidentiality claim.
  • No audit. Two informal reviews found real defects. That is not an audit.
  • The value binding is new. It is exact algebra, but the construction has never been reviewed by a cryptographer.
  • No security level is claimed. The estimator prices generic lattice attacks at about 2154 classical for the weakest relation (a ±15-bit band, and 2179.5 MATZOV), which is not a proof against structure and not a security claim.
Recent: the money was forgeable, and we said so. An independent review broke the first value-binding construction: a planted key let a spend declare any amount, with a genuine proof the real verifier and the real chain accepted. It was reproduced — 999,999,999 atoms minted from a 1-atom note, with the supply still reporting “consistent”. It is fixed by the class-row construction: a member the ledger does not record at the declared value is not in the image of the proved matrix, so it cannot be opened. (That conclusion is algebraic; the step from "a proof verifies" to "a witness relation exists" is SMILE's knowledge soundness, which this project assumes rather than proves — see the proof document.) The review, the reproduction and the fix are all in the repository.

How it works

01

A ring, not a signature from “you”

A spend proves knowledge of one secret among 1,024 public keys, without revealing which. The proof is a SMILE ring signature over Rq = Zq[X]/(X128+1), chosen so the polynomial splits into 32 independent slots — which is what makes the challenge differences invertible and the extracted index one-hot.

02

A value the proof must open, not merely claim

An input declares its value in the clear. The proved matrix has an extra, identically zero row, and every ring member carries a component on it: 0 if the ledger records a note of that value under the key, 1 otherwise. Since the row is zero, any witness produces 0 there — so a member stamped 1 has no witness at all, short or long. The declared value becomes part of what the proof opens.

03

One key, one spend

Each key publishes a tag T = A′·s. Spend it twice and the tag is already recorded, so the second spend is refused before any proof is consulted. The tag is part of the same relation, so a forger cannot choose it independently of the secret they opened.

04

Two implementations that check each other

The Python reference is slow and readable; the Rust port is the fast one. They cross-verify: the Python verifier accepts Rust proofs and the Rust verifier accepts Python proofs, over the same statements and the same bytes. That cross-check has caught bugs neither side's own tests found.

The limits, with numbers

PropertyWhere it stands
Ring size1,024 keys
Effective anonymity setthe number of ring members whose note holds the declared value — public, and 1 for an amount only one key holds. A D15 replacement (unfiltered rings with value-blind decoys and coin binding) is designed and reviewed as a plan, not activated and not proven.
Recipient unlinkabilityyes, and separate from the above
Amountsvisible
Proof size23,296 bytes per input; a 2-in/2-out spend is ~111 KB
Proving time227.8 ms in Rust; ~28 s in the Python reference
Verification60.4 ms in Rust
Estimator2153.9 classical / 2179.5 MATZOV for the binding relation (generic attacks only; ±15-bit band)
Confidential amountsnot in the shipped protocol. A design route exists (slot-0 amounts + coin-binding layer, owner decision D15) but it is design only: unproven assumptions, no implementation, no activation — the design, the evidence ledger, and the old obstruction
Desktop applicationswallet, node and miner for Windows, macOS and Linux; separate programs, unsigned, no auto-update; installers are CI artifacts, not releases
Auditnone

A number that does not name the command that produced it is a rumour. Every figure above is in the repository with the measurement that produced it.

Run it

No prebuilt downloads: the earlier release predates a consensus hard fork, so those binaries are refused by a current node, and the release gate is closed until the cryptography is audited. Source is one command.

git clone https://github.com/xhimnijx/Gram.git
cd Gram
python -m pip install -e .
python -m radix_testnet

Python 3.11+. That starts a node on your machine and opens the wallet in a standalone window with its own profile — not in your browser session. The first send takes a minute or two with the reference prover; the Rust backend brings it to about two seconds.

For the desktop applications, CI builds a .zip for Windows, a .dmg for macOS and a .deb for Linux, then installs each one and runs its self-test. They are on the Actions page as build artifacts, deliberately not attached to a release: an installer for an unaudited consensus system is the most misleading thing this project could publish.

Where to start reading