Skip to content

[ZK] Research spike: ZK verification on Soroban #35

Open

Description

@Gbangbolaoluwagbemiga

Goal

Decide how SecureFlow will do zero-knowledge verification before building the ZK features
(#36, #37, #38). This is a research/design spike that ends in a written ADR, not production code.

Questions to answer

  • Can a ZK verifier run on-chain in Soroban within instruction/cost limits? Which proof
    systems are feasible (Groth16 / PLONK / STARK / Bulletproofs) given available host functions
    (pairing/curve ops)?
  • If on-chain verification is too costly: off-chain proof generation + on-chain attestation
    (an oracle/attester posts a verified result) — what are the trust assumptions?
  • Proving stack: which toolchain (e.g. circom/snarkjs, halo2, noir) fits a Rust/Soroban project?
  • Where do proofs get generated — client-side in the browser/wallet, or a service?
  • Nullifier + commitment scheme shared across the three ZK features

Deliverable

  • An ADR in docs/adr/ documenting the chosen architecture, trade-offs, and a reference flow
  • A throwaway proof-of-concept proving one trivial statement end-to-end

Acceptance criteria

This is the foundational ZK issue and a centerpiece of the SCF pitch — do it first.

Activity

  1. changed the title [-]Research spike: ZK verification on Soroban[/-] [+][ZK] Research spike: ZK verification on Soroban[/+] on Jun 17, 2026
  2. rupesh-kumar-sah commented on Oct 7, 2026

    @rupesh-kumar-sah

    Hi team,

    Happy to tackle this. Here is how I plan to implement it:

    Implementation approach:

    1. Audit storage layout and state invariants ensuring strict auth guards.
    2. Implement deterministic state transitions with safe checked arithmetic.
    3. Add hermetic unit and regression tests covering authorized, unauthorized, and boundary edge cases.
    4. Profile instruction and CPU/gas limits under Soroban host environment.

    I can deliver a clean, tested PR within 24 hours. Please assign!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    zkZero-knowledge / privacy

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions