-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Problem
The API client expects ZK proof generation and verification endpoints that don't exist in the ZHTP node.
Missing Endpoints (HIGH PRIORITY)
- POST /api/v1/zkp/generate - Generate zero-knowledge proof
- 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
Labels
No labels