Skip to content

[FRONTEND]: Zero-knowledge proof endpoints missing in ZHTP node #6

@umwelt

Description

@umwelt

Problem

The API client expects ZK proof generation and verification endpoints that don't exist in the ZHTP node.

Missing Endpoints (HIGH PRIORITY)

  1. POST /api/v1/zkp/generate - Generate zero-knowledge proof
  2. POST /api/v1/zkp/verify - Verify zero-knowledge proof

Current Node Implementation

  • NONE - ZK proof subsystem missing from API

Impact

  • HIGH PRIORITY - ZK privacy features not functional
  • Identity verification without revealing data not working
  • Privacy-preserving transactions unavailable
  • Core to privacy model

Expected Behavior

POST /api/v1/zkp/generate

  • Request: { data: any } - Data to prove knowledge of
  • Response: Proof object with zk_proof data
  • Should generate bulletproof or similar ZK proof

POST /api/v1/zkp/verify

  • Request: Proof object
  • Response: { valid: boolean }
  • Should verify proof without revealing underlying data

Implementation Location

ZHTP Node: New handler needed - zhtp/src/api/handlers/zkp/mod.rs
Libraries: lib-proofs already has ZK implementation

Notes

  • lib-proofs already implements bulletproofs
  • Need to expose via HTTP API
  • Critical for privacy-preserving features

Priority

HIGH - Important privacy feature for alpha

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions