Complete Web4 Protocol Stack - Internet Replacement
This documentation provides comprehensive coverage of the lib-protocols library, which implements ZHTP (Zero Knowledge Hypertext Transfer Protocol) and ZDNS (Zero Knowledge Domain Name System) - the foundation of Web4.
- OVERVIEW - Complete architecture and design philosophy
- Module Documentation - Detailed docs for each component
- types: Core protocol types - requests, responses, headers, status codes
- zhtp: ZHTP server, routing, content management, sessions
- zdns: Zero-knowledge DNS with ownership proofs
- handlers: Request handlers for all ZHTP methods
- validation: Protocol validation, ZK proofs, rate limiting
- integration: Unified system orchestrating all components
- crypto: Cryptographic operations and ZK proof validation
- economics: Economic models, fee calculation, DAO integration
- storage: Distributed storage integration with lib-storage
- identity: Identity management with ZK-DID support
- secure_transfer: Secure wallet transfers with signature verification
- testing: Mock implementations and test utilities
See OVERVIEW.md for complete examples and getting started guide.
- ZHTP v1.0: HTTP replacement with built-in economics and privacy
- ZDNS v1.0: Censorship-resistant domain resolution
- Post-Quantum Security: CRYSTALS-Dilithium, CRYSTALS-Kyber
- Zero-Knowledge Proofs: Privacy-preserving validation
- Economic Incentives: 2% DAO fees for UBI funding
- ****: Complete mesh networking capability
- OVERVIEW - Architecture, design philosophy, and quick start
- API_REFERENCE - Complete API documentation with method signatures
- EXAMPLES - Practical code examples for common use cases
Each module is documented with:
- Purpose and scope
- Key types and structures
- Feature highlights
- Usage examples
For New Users:
- Read OVERVIEW.md to understand the architecture
- Review EXAMPLES.md for practical usage patterns
- Explore individual module docs as needed
For API Integration:
- Check API_REFERENCE.md for function signatures
- Review types.md for data structures
- See integration.md for system-wide usage
For Protocol Development:
- Study zhtp.md and zdns.md
- Review crypto.md and validation.md
- Understand economics.md for fee models