Skip to content

[ZK] ZK reputation proofs #36

Open

Description

@Gbangbolaoluwagbemiga

User story

A freelancer wants to prove "I have completed ≥ N jobs" or "my average rating ≥ X" to a
prospective client without revealing which clients, projects, or amounts are behind that record.

Background

Reputation is tracked on-chain (ratings.rs: get_average_rating, get_completed_escrows,
get_badge). Today these expose the full history. ZK lets the freelancer prove a threshold while
keeping specifics private.

What needs to be done

  • Circuit: input = the freelancer's private rating/completion records (+ Merkle membership in
    the on-chain reputation set); public = threshold N / X and a commitment root
  • Verifier per the architecture chosen in [ZK] Research spike: ZK verification on Soroban #35 (on-chain or attested)
  • Contract entrypoint: verify_reputation_proof(...) returning pass/fail, with a nullifier to
    prevent replay
  • Frontend: generate the proof and show a "verified reputation" badge

Acceptance criteria

  • A valid proof for a true statement verifies; a false statement fails
  • No private record is revealed on-chain
  • Replay-protected

Relevant files

contracts/secureflow/src/ratings.rs, src/components/reputation-score.tsx

Depends on #35.

Activity

  1. changed the title [-]ZK reputation proofs[/-] [+][ZK] ZK reputation proofs[/+] on Jun 17, 2026
  2. guptakumarranjeet150 commented on Oct 7, 2026

    @guptakumarranjeet150

    Hello team,

    I looked into [ZK] ZK reputation proofs and have an implementation approach ready.

    Plan:

    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

    featureNew product capabilityzkZero-knowledge / privacy

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions