-
Notifications
You must be signed in to change notification settings - Fork 35
[BOUNTY] Write Comprehensive Architecture Documentation #17
Copy link
Copy link
Open
Labels
bountyHas USDC reward via Drips WaveHas USDC reward via Drips WavedocumentationDocs and guidesDocs and guidespriority: mediumImportantImportant
Description
[BOUNTY] Write Comprehensive Architecture Documentation
Description
Document the complete contract architecture, design decisions, component interactions, and cryptographic flow. This serves as the technical reference for developers and auditors.
Scope
Document Structure
Create contracts/privacy_pool/ARCHITECTURE.md:
1. Overview
- System architecture diagram
- Component relationships
- Data flow diagrams
2. Core Components
- Contract module breakdown
- Storage layer design
- Cryptographic primitives
3. Merkle Tree Design
- Tree structure (depth 20, Poseidon hash)
- Insertion algorithm
- Root history management
- Storage optimization
4. Deposit Flow
- Step-by-step process
- Commitment generation
- Tree insertion
- Event emission
5. Withdrawal Flow
- Proof verification process
- Nullifier checking
- Fund transfer
- Double-spend prevention
6. Admin Functions
- Initialization
- Verification key updates
- Pause mechanism
- Access control
7. Security Considerations
- Attack vectors and mitigations
- Privacy guarantees
- Known limitations
- Audit recommendations
8. Gas Optimization
- Storage patterns
- Computation efficiency
- Batch operations
9. Protocol 25 Integration
- BN254 curve usage
- Poseidon hash usage
- Native host functions
Acceptance Criteria
- Complete ARCHITECTURE.md file
- At least 2000 words
- Include diagrams (ASCII or images)
- Code examples where relevant
- Security section comprehensive
- References to relevant files
- Reviewed by maintainer
Technical Notes
- Use Mermaid for diagrams
- Reference actual code
- Explain design trade-offs
- Document future improvements
Labels: bounty,documentation,priority: medium
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bountyHas USDC reward via Drips WaveHas USDC reward via Drips WavedocumentationDocs and guidesDocs and guidespriority: mediumImportantImportant