Mining/pkg
snider f65db3f5c4 feat: Implement peer allowlist for P2P security (P2P-CRIT-1)
Add PeerAuthMode to control peer registration:
- PeerAuthOpen: Allow all peers (backward compatible default)
- PeerAuthAllowlist: Only allow pre-registered peers or allowlisted public keys

New features:
- PeerRegistry.SetAuthMode/GetAuthMode for mode control
- PeerRegistry.AllowPublicKey/RevokePublicKey for key management
- PeerRegistry.IsPeerAllowed check before connection acceptance
- Transport rejects unauthorized peers with proper handshake rejection

New API endpoints:
- GET/PUT /peers/auth/mode - Get/set authentication mode
- GET/POST/DELETE /peers/auth/allowlist - Manage allowlisted keys

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 15:06:52 +00:00
..
database test: Add error path unit tests for context cancellation and cleanup 2025-12-31 13:04:20 +00:00
logging feat: Add structured logging package 2025-12-31 11:18:22 +00:00
mining feat: Implement peer allowlist for P2P security (P2P-CRIT-1) 2025-12-31 15:06:52 +00:00
node feat: Implement peer allowlist for P2P security (P2P-CRIT-1) 2025-12-31 15:06:52 +00:00