12 Commits
Author SHA1 Message Date
zeekay 4e046cf50d refactor: update dependencies and engine improvements 2026-01-05 01:28:53 -08:00
zeekay 4aac78700d Refactor: remove dead code, add thread safety, improve test coverage
- Remove unused packages: engine/dag/{getter,bootstrap,vertex/vertexmock},
  engine/pq/{bootstrap,block}, core/{tracker,verify}
- Add sync.RWMutex to protocol/wave for thread-safe map access
- Increase engine/dag test coverage from 11.7% to 98.3%
- Add comprehensive tests for DAG consensus, vertex, and engine
- All 27 packages pass tests, 16 at 100% coverage
2025-12-13 07:42:01 +00:00
zeekay d3c95c6e4c Replace symlinks with actual directories for Go module compatibility 2025-09-27 03:26:38 +00:00
zeekay fee6b3564f Update and re-organize 2025-09-24 04:01:37 -05:00
zeekay 769f316d04 fix: resolve linting issues for CI
- Fixed assignOp issues: replaced x = x + y with x += y
- Fixed deprecated GetSubnetID to use GetNetID
- Added error check for verkle witness SetBytes
- Added nolint comment for simulation randomness (not security-critical)
- Formatted all Go code with gofmt
2025-08-25 22:10:31 -05:00
zeekay ace766cace fix: resolve critical linting issues
- Fix SA4031 nil check error in engine/pq/consensus.go by replacing unreachable nil check with proper certificate validation
- Fix SA9003 empty branch error in engine/pq/engine_test.go by adding meaningful log statement
- Fix integer overflow G115 in quasar.go by avoiding conversion of addition result
- Separate deprecated GetSubnetID export to avoid SA1019 in main exports
- Format all Go files with gofmt
- All tests still passing with 100% success rate
2025-08-23 13:19:08 -05:00
zeekay af0bbdc3d6 feat: complete integration of all three consensus engines
- Implement chain, DAG, and post-quantum consensus engines with full test coverage
- Create IntegratedEngine in node package combining all three engines
- Add production-ready cmd tools (params, checker, sim, zmq-bench)
- Implement Acceptor interface for node consensus integration
- Add WithBlockTime method to config Parameters
- Ensure all tests pass across consensus and node packages
- Remove stub implementations and add proper production code
- Fix config validation with detailed error messages
- Clean up duplicate files and unused code
2025-08-21 19:25:56 -05:00
zeekay c4faaef66f Refactor: Clean Wave-first consensus architecture
- Minimal, idiomatic Go structure
- Prism (sampler) with cut/refract selection
- Wave (threshold voting with α/β parameters)
- DAG helpers (Horizon/Flare)
- Nova finalizer
- Verkle hooks interface
- Quasar overlay for dual certificates
- FPC enabled by default in WaveConfig
- Clean separation: core algorithms vs named protocols
- Runnable fastchain example demonstrating the flow
2025-08-18 21:51:35 -05:00
zeekay f5897d4d94 Various changes for node 2025-08-17 03:57:57 +00:00
zeekay 5a1231ae59 Fix duplicate Manager interface declaration 2025-08-17 00:35:02 +00:00
zeekay fb5647bbc0 Updates to Wave 2025-08-15 01:14:18 -05:00
zeekay 676ef65219 Restructure consensus module to pure protocol logic
- Move from protocol/ to protocols/ directory structure
- Create core/interfaces for pure protocol abstractions
- Implement protocols/prism for shared sampling/quorum logic
- Add protocols/nova (Snowman), photon, pulse, wave, nebula
- Create engine/ packages for orchestration (chain, dag, pq)
- Add networking/ abstractions without implementation details
- Remove choices/, threshold/, utils/validator duplicates
- Export consensus context and types from root package
- Add compatibility layers for node integration

This creates a pure consensus protocol implementation with no node dependencies.
2025-08-14 03:44:03 +00:00