-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
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 | ✅ 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/v1prefix - 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/gasto/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)
- 🔴 Node: Implement backup/recovery endpoints (Issue [FRONTEND]: Backup and recovery system missing in ZHTP node #4)
- 🔵 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) - ✅ DONE: Authentication working (Issue [FRONTEND]: Authentication endpoints missing in ZHTP node #3)
- ✅ DONE: Node path aliases added (PR #109)
Phase 2: HIGH (Important for Alpha)
- 🔴 Node: Implement guardian recovery (Issue [FRONTEND]: Guardian recovery system missing in ZHTP node #5)
- 🔴 Node: Implement ZK proof endpoints (Issue [FRONTEND]: Zero-knowledge proof endpoints missing in ZHTP node #6)
- 🔴 Node: Implement missing DAO/wallet endpoints (Issue #112)
Phase 3: MEDIUM (Nice to Have)
- 🔴 Node: Implement Web4/DHT resolution (Issue #113)
- 🔵 Library: Add Web4 resolution methods (Issue [FRONTEND]: Web4 domain resolution endpoints need alignment #9)
Alpha Release Readiness
Can Ship Alpha Without:
- Guardian recovery (Issue [FRONTEND]: Guardian recovery system missing in ZHTP node #5) - users can use seed phrases
- ZK proofs (Issue [FRONTEND]: Zero-knowledge proof endpoints missing in ZHTP node #6) - privacy features deferred
- DHT resolution (Issue #113) - Web4Manager resolution works
Must Have for Alpha:
- ✅ Authentication (Issue [FRONTEND]: Authentication endpoints missing in ZHTP node #3)
- 🔴 Backup/recovery (Issue [FRONTEND]: Backup and recovery system missing in ZHTP node #4)
- 🔵 All library paths updated (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)
- 🔴 Core DAO/wallet endpoints (Issue #112)
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:
- All library issues ([FRONTEND]: API path inconsistencies between client and node #7, [FRONTEND]: Smart contract endpoints incomplete in ZHTP node #8, [FRONTEND]: Web4 domain resolution endpoints need alignment #9, [FRONTEND]: Network gas pricing endpoint missing #10) converted to implementation tasks
- Ready for updates once node endpoints are implemented
Next Actions
- 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)
- 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
- Wait for node Issue #112 to complete
- Add library methods in Issue [FRONTEND]: Web4 domain resolution endpoints need alignment #9 once node Issue #113 completes
Metadata
Metadata
Assignees
Labels
No labels