Commit Graph

3 Commits

Author SHA1 Message Date
Jeff Emmett 33438d4d43 fix: Exchange public keys during Braid subscription handshake
Peers now send X-Public-Key header when subscribing, so the receiving
node can verify consensus signatures immediately without waiting for
Redis discovery.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 18:36:12 +00:00
Jeff Emmett 3fedbc4774 fix: Update imports for consensus-service integration
- Inline types instead of separate types package
- Add Redis initialization in start()
- Use actual Ed25519 signing from crypto module
- Fix null safety on Redis client

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 05:45:44 +00:00
Jeff Emmett 6959ad4106 feat: Braid-HTTP transport adapter for BFT-CRDT consensus sync
Drop-in replacement for WebSocket-based PeerManager and StateSync
using Braid-HTTP subscriptions. Key components:

- BraidPeerManager: HTTP-native peer transport (no WebSocket server)
- BraidStateSync: Push-based sync instead of polling
- BraidStatePublisher: Serves JSON state to Simpleton light clients
- SimpletonClient: Zero-CRDT read-only client (~50 lines of protocol)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 05:21:04 +00:00