mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
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.
55 lines
1.2 KiB
TOML
55 lines
1.2 KiB
TOML
[package]
|
|
name = "lux-consensus"
|
|
version = "1.22.0"
|
|
edition = "2021"
|
|
description = "Lux Consensus SDK - Pure Rust BFT consensus with GPU acceleration"
|
|
license = "MIT"
|
|
repository = "https://github.com/luxfi/consensus"
|
|
|
|
[dependencies]
|
|
hex = "0.4"
|
|
libc = "0.2"
|
|
|
|
# BLS12-381 signatures for Quasar consensus
|
|
blst = "0.3"
|
|
|
|
# Optional GPU acceleration dependencies
|
|
# MLX (Apple Silicon) - via C++ bindings
|
|
mlx-sys = { version = "0.1", optional = true }
|
|
|
|
# BLAKE3 for fast hashing (SIMD optimized)
|
|
blake3 = { version = "1.5", optional = true }
|
|
|
|
# Parallel processing
|
|
rayon = { version = "1.10", optional = true }
|
|
|
|
[build-dependencies]
|
|
cc = "1.0"
|
|
|
|
[lib]
|
|
name = "lux_consensus"
|
|
path = "src/lib.rs"
|
|
crate-type = ["rlib"]
|
|
|
|
[features]
|
|
default = []
|
|
# CPU-optimized with SIMD (no GPU)
|
|
simd = ["blake3", "rayon"]
|
|
# Apple Silicon GPU acceleration via MLX
|
|
mlx = ["mlx-sys", "simd"]
|
|
# NVIDIA GPU acceleration via CUDA (future)
|
|
cuda = ["simd"]
|
|
# Full GPU acceleration (MLX on macOS, CUDA on Linux/Windows)
|
|
gpu = ["mlx", "cuda"]
|
|
|
|
# [[example]]
|
|
# name = "basic_usage"
|
|
# path = "examples/basic_usage.rs"
|
|
|
|
[dev-dependencies]
|
|
criterion = { version = "0.7.0", features = ["html_reports"] }
|
|
|
|
[[bench]]
|
|
name = "consensus_bench"
|
|
harness = false
|