Skip to content

[FRONTEND] [ALPHA]: API endpoint gaps between client and ZHTP node #11

@umwelt

Description

@umwelt

Overview

This is a tracking issue for API endpoint gaps between the API client library and the ZHTP node implementation that need to be resolved for the alpha release.

Status Update: Issues have been categorized into Node work vs Library work.

Issue Status Summary

Issue Title Type Status
#3 Authentication endpoints Node ✅ CLOSED - Already implemented
#4 Backup & Recovery Node 🔴 OPEN - Needs node implementation
#5 Guardian Recovery Node 🔴 OPEN - Needs node implementation
#6 Zero-Knowledge Proofs Node 🔴 OPEN - Needs node implementation
#7 API path inconsistencies Library 🔵 OPEN - Update paths to /api/v1
#8 Smart contract paths Library 🔵 OPEN - Update to canonical paths
#9 Web4 resolution Library 🔵 OPEN - Add new methods (blocked by node)
#10 Gas pricing Library 🔵 OPEN - Update path (blocked by node)

Node Work Required

These issues require implementation on the ZHTP node:

🔴 Issue #4: Backup & Recovery System

  • Node Issue: [Create in main repo]
  • Missing Endpoints: 7 backup/recovery endpoints
  • Priority: CRITICAL
  • Blocks: Users cannot back up or recover identities

🔴 Issue #5: Guardian Social Recovery

  • Node Issue: [Create in main repo]
  • Missing Endpoints: 9 guardian management endpoints
  • Priority: HIGH
  • Blocks: Social recovery unavailable

🔴 Issue #6: Zero-Knowledge Proofs

  • Node Issue: [Create in main repo]
  • Missing Endpoints: ZKP generate/verify
  • Priority: HIGH
  • Blocks: Privacy features

Additional Node Issues Created:

  • Node Issue #112: Missing 9 DAO/wallet/health endpoints
  • Node Issue #113: Missing Web4/DHT resolution endpoints

Library Work Required

These issues require updates to the API client library:

🔵 Issue #7: Update API Paths

  • Task: Update all old paths to use /api/v1 prefix
  • Files: src/core/zhtp-api-methods.ts
  • Lines: Multiple (14+ paths to update)
  • Status: Node has aliases for backward compatibility (PR #109)

🔵 Issue #8: Update Contract Paths

  • Task: Use canonical /api/v1/blockchain/contracts/* paths
  • Files: src/core/zhtp-api-methods.ts
  • Status: Node has aliases for backward compatibility (PR #109)

🔵 Issue #9: Add Web4 Methods

  • Task: Add 3 new methods for DHT/Web4 resolution
  • Files: src/core/zhtp-api-methods.ts
  • Blocked by: Node Issue #113

🔵 Issue #10: Update Gas Path

  • Task: Change /network/gas to /api/v1/network/gas
  • Files: src/core/zhtp-api-methods.ts (line 579)
  • Blocked by: Node Issue #112

Implementation Priority

Phase 1: CRITICAL (Blocks Alpha)

  1. 🔴 Node: Implement backup/recovery endpoints (Issue [FRONTEND]: Backup and recovery system missing in ZHTP node #4)
  2. 🔵 Library: Update all paths to /api/v1 (Issues [FRONTEND]: API path inconsistencies between client and node #7, [FRONTEND]: Smart contract endpoints incomplete in ZHTP node #8, [FRONTEND]: Network gas pricing endpoint missing #10)
  3. DONE: Authentication working (Issue [FRONTEND]: Authentication endpoints missing in ZHTP node #3)
  4. DONE: Node path aliases added (PR #109)

Phase 2: HIGH (Important for Alpha)

  1. 🔴 Node: Implement guardian recovery (Issue [FRONTEND]: Guardian recovery system missing in ZHTP node #5)
  2. 🔴 Node: Implement ZK proof endpoints (Issue [FRONTEND]: Zero-knowledge proof endpoints missing in ZHTP node #6)
  3. 🔴 Node: Implement missing DAO/wallet endpoints (Issue #112)

Phase 3: MEDIUM (Nice to Have)

  1. 🔴 Node: Implement Web4/DHT resolution (Issue #113)
  2. 🔵 Library: Add Web4 resolution methods (Issue [FRONTEND]: Web4 domain resolution endpoints need alignment #9)

Alpha Release Readiness

Can Ship Alpha Without:

Must Have for Alpha:

Related Work

ZHTP Node Issues:

  • Issue #111: Test compilation errors (lib-proofs, lib-economy)
  • Issue #112: Missing DAO/wallet/health endpoints
  • Issue #113: Missing Web4/DHT resolution endpoints
  • PR #109: Path aliases for backward compatibility ✅

API Client Library:

Next Actions

  1. Create node issues for [FRONTEND]: Backup and recovery system missing in ZHTP node #4, [FRONTEND]: Guardian recovery system missing in ZHTP node #5, [FRONTEND]: Zero-knowledge proof endpoints missing in ZHTP node #6 (backup, guardian, ZKP)
  2. Update library paths in Issues [FRONTEND]: API path inconsistencies between client and node #7, [FRONTEND]: Smart contract endpoints incomplete in ZHTP node #8, [FRONTEND]: Network gas pricing endpoint missing #10
  3. Wait for node Issue #112 to complete
  4. Add library methods in Issue [FRONTEND]: Web4 domain resolution endpoints need alignment #9 once node Issue #113 completes

Metadata

Metadata

Assignees

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