u/BEWViD

▲ 6 r/learnrust+1 crossposts

Implementing zk-STARKs from scratch in Rust (AIR + FRI)

Hey everyone,

I’ve been working on a personal project where I tried to build a small experimental blockchain from scratch, mainly to explore cryptography and systems design.

The Rust part is a custom zk-STARK implementation (AIR + FRI) that I wrote from scratch and then integrated into a working chain.

Some of the things in the project:

– zk-STARK system in Rust (custom AIR over Goldilocks field, Rescue-Prime)

– proof generation + verification (\~22 ms / \~0.6 ms)

– PyO3 bindings to connect it to a Python chain

– shielded transactions with a STARK-based privacy layer

– full chain replay that re-verifies proofs

– simple P2P gossip network

This is NOT production-ready (no persistence, no DoS protection, no audits, etc.) — it’s purely a learning / research project.

The most interesting part for me was:

– designing the AIR constraints

– getting the STARK pipeline working end-to-end

– integrating proof verification into the blockchain state machine

I’d really appreciate feedback, especially from people with Rust / crypto experience:

– Does the AIR design approach make sense?

– Any obvious performance issues or bad patterns?

– How would you structure this differently in Rust?

Repo / demo:

https://sil714.github.io/qchain/

reddit.com
u/BEWViD — 3 hours ago
▲ 9 r/zec+2 crossposts

Exploring post-quantum + zk privacy in one experimental chain

I built a from-scratch experimental blockchain to explore some ideas I've been interested in:

– post-quantum signatures (Dilithium)

– custom zk-STARK system (AIR + FRI, written in Rust)

– shielded + anonymous transactions

– simple P2P gossip network

It’s not production-ready (no persistence, no DoS protection, etc.) — this is purely a learning/research project.

The most interesting part was implementing the STARK system end-to-end and integrating it into a working chain.

I’d really appreciate feedback, especially on: – the AIR design

– the privacy model

– tradeoffs between PQ signatures vs performance

Repo / demo:

https://github.com/sil714/qchain

Happy to answer any questions.

u/BEWViD — 4 hours ago