How imdaisyadams/chaum-pedersen-protocol-poc works
Component Details
• Inside, create a component for "ZKP Client Implementation" (src/client.rs)
• Subcomponents for:
• Proof Generator
• Registration Handler
• Login Handler
• gRPC Client Stub
• Protocol Buffer definition (zkp_auth.proto)
• Inside, create a component for "ZKP Server Implementation" (src/server.rs)
• Subcomponents for:
• Challenge Generator
• Proof Verifier
• User Registry
• gRPC Server Implementation
Interaction Flows
• Registration Flow:
• Client → Server: Registration Request
• Server → Client: Challenge
• Client → Server: Proof Submission
• Server → Client: Verification Result
• Login Flow:
• Similar to registration but with different protocol messages
Technical Details
Annotations for:
• Protocol Buffer Messages (from zkp_auth.proto)
• Docker container boundaries (reference Dockerfile.client and Dockerfile.server)
• Zero-knowledge proof components:
• Challenge generation
• Proof creation
• Verification process
Additional Elements
• Container boundaries
• Protocol message types
Infrastructure Layer
At the bottom, add:
• Docker Compose configuration
• Network configuration between containers
• Port mappings
Special Considerations:
Cryptographic Flow
• Zero-knowledge proof stages
• Where discrete logarithm calculations occur
• Where sensitive data is handled
Security Boundaries
• Clear delineation of trust boundaries
• Indication of encrypted communication channels
• Separation of concerns between components
Deployment View
• Docker container isolation
• Network interfaces
• Exposed ports and services
• High-level: Overall client-server architecture
• Mid-level: Component interactions and protocol flow
• Detail-level: Specific cryptographic operations and proof verification steps
Remember to use standardized symbols for:
• Components (solid rectangles)
• Protocol messages (small rectangles or circles on communication lines)