Commit Graph
9 Commits
Author SHA1 Message Date
zeekay 783a66a8ce rename: Corona → Corona (canonical R-LWE threshold)
Removes Corona references from docs, Rust SDK type names, Python
SDK signature scheme tags, and the audit ledger. Corona is the
canonical name for the R-LWE threshold primitive in the Quasar
consensus stack alongside Pulsar (Module-LWE) and Magnetar (hash).

Rust changes: rename corona_sig → corona_sig, corona_pubkey →
corona_pubkey, collect_corona_signatures → collect_corona_signatures.
Python changes: rename SIG_CORONA → SIG_CORONA.
2026-06-02 03:26:38 -07:00
zeekay 02be79047d pkg/rust: align prose with Corona purge — Pulsar is the PQ name
The Go-side Corona purge (commits 045c944d, f6753f3b, d1c8a2cc) was
not propagated to pkg/rust prose. README, Cargo.toml description, and
the top-level //! docstring in src/lib.rs still said "BLS12-381 +
Corona" or "BLS + Corona signatures" while the Go consensus stack
renamed to Pulsar (Module-LWE) + Corona (Ring-LWE) per LP-4200.

Update README + Cargo.toml description + lib.rs //! header to use
"Pulsar (Module-LWE threshold, FIPS 204 byte-equal)" — matching the
canonical naming in consensus/CLAUDE.md.

Cargo.lock 1.22.0 → 1.22.1 was already in the working tree from the
pending version bump; commits alongside this prose alignment so the
next crates.io publish carries both.

NOT renamed: public API field names (corona_sig, corona_pubkey,
collect_corona_signatures, etc.) — breaking surface renames need a
deliberate decision and a coordinated minor/major bump. Prose
alignment is the safe patch.

`cargo check --no-default-features` PASS.
2026-05-14 08:55:30 -07:00
zeekay 79eb047505 feat: unify Python SDK with MCP mesh consensus
Major changes:
- Merge pkg/wire Python types into pkg/python/lux_consensus
- Add MCP mesh consensus module (from hanzo-consensus)
- Add types.py with Candidate, Vote, Certificate for wire protocol
- Bridge functions for AI consensus -> blockchain interop
- Keep pkg/wire as Go-only wire protocol types

Python SDK now provides:
- lux_consensus: Core chain/block/vote types
- lux_consensus.types: Wire protocol (Candidate, WireVote, WireCertificate)
- lux_consensus.mcp: MCP mesh for agent-to-agent consensus

Also includes engine improvements:
- Chain syncer with persistence
- PQ crypto enhancements
- External sequencer finality example
- Protocol field/horizon/prism updates

All tests passing.
2026-01-13 09:49:03 -08:00
zeekay 7a1591ee63 feat: update consensus v1.22.1 - context improvements and TypeScript SDK
- Add context extension methods for uptime and node info
- Add NoOpCalculator for uptime in test contexts
- Update locked calculator with proper interface compliance
- Remove experimental quasar event horizon duplicates
- Add TypeScript/NAPI SDK bindings for consensus
- Update Rust bindings and tests
2025-12-03 23:56:12 -08:00
zeekay 3323def2f5 fix: update Rust doctest for v1.22.0 API compatibility
- Mark doctest as no_run to avoid Result type conflicts
- Fix ID construction to use full 32-byte arrays
- Update to use underscore for ignored results
- All Rust tests now passing (doctests + unit tests)

This fixes the final CI failure.
2025-11-13 10:16:07 -08:00
zeekay 646e8803b7 fix: resolve remaining CI issues
- Fixed cmd/consensus build issues with uninitialized engine variable
- Fixed Rust doctest by replacing GENESIS_ID with explicit ID
- All main tests passing (Go, Python, C, C++)
- Benchmark tests passing
2025-11-13 00:50:25 -08:00
zeekay f5da5ba21d refactor: clean package structure with single-import SDKs
BREAKING CHANGE: Package paths have been reorganized for clarity

## Major Changes

### Package Structure
- Collapsed engine/core → engine (removed unnecessary nesting)
- Moved core/types → types (top-level types package)
- Added root facade for single-import experience
- Removed redundant factory.go

### SDK Improvements
All SDKs now provide single-import interfaces:
- Go: import "github.com/luxfi/consensus"
- Python: import lux_consensus as consensus
- Rust: use lux_consensus::*

### Documentation
- Added comprehensive introduction and architecture docs
- Created AI/ML integration guide for researchers
- Added research section with papers and experiments
- Improved sidebar organization and discoverability

### Benefits
- Shallow, obvious import paths
- One responsibility per package
- DRY, composable, orthogonal design
- Idiomatic patterns for each language
- Consistent API across all SDKs

This refactor provides a clean, intuitive developer experience where
one import is enough and things work one way only.
2025-11-12 21:40:00 -08:00
zeekay 2f4d6b5d9e Update copyright 2025-09-26 02:10:39 +00:00
zeekay fee6b3564f Update and re-organize 2025-09-24 04:01:37 -05:00