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.
21 lines
385 B
Python
21 lines
385 B
Python
"""MCP mesh consensus for AI agents.
|
|
|
|
Reference: https://github.com/luxfi/consensus
|
|
"""
|
|
|
|
from .consensus import State, Result, Consensus, run
|
|
from .mcp_mesh import MCPMesh, MCPAgent, create_mesh, run_mcp_consensus
|
|
|
|
__all__ = [
|
|
# Core
|
|
"Consensus",
|
|
"State",
|
|
"Result",
|
|
"run",
|
|
# MCP Mesh
|
|
"MCPMesh",
|
|
"MCPAgent",
|
|
"run_mcp_consensus",
|
|
"create_mesh",
|
|
]
|