Go implementation of Monad's pipelined two-phase BFT consensus algorithm. Pluggable consensus engine for Cosmos-EVM (evmd), maintaining behavioral parity with the original Rust codebase.
consensus/ — Pacemaker, VoteState, Safety rules, state machineblocktree/ — Pending-block coherency, two-chain commit logicvalidator/ — Stake-weighted ValidatorSet, epoch manager, leader electioncrypto/ — secp256k1 + BLS12-381 with Monad signing domainsraptor/ — RFC 6330 RaptorQ codec (GF(256), LDPC+LT, systematic)net/raptorcast/ — Chunk assignment, broadcast router, rebroadcastnet/dataplane/ — UDP batching, priority queues, TCP fallbacknet/wireauth/ — Noise-based session authenticationwal/ — Append-only RLP event log, rotating chunks, crash recoverystore/ — Pebble-backed block store, forkpoint tracking, fsyncmonadstate/ — Live/Sync mode dispatcher, safety watermarksbridge/ — ABCI adapter, FinalizeBlock/Commit translationbridge/resultstore/ — Prunable tx indexes, RPC compatibilityglue/ — MonadEvent/Command contract typesgo-ethereum — secp256k1 signing, RLP encoding, address derivationsupranational/blst — BLS12-381 for vote/timeout aggregationcockroachdb/pebble — LSM block store with fsync guaranteeszeebo/blake3 — Fast hashing for block/tx digestsericlagergren/aegis — AEGIS-128L authenticated encryption# Clone repos side by side git clone https://github.com/abhijitkrm/monadbft-go.git git clone https://github.com/abhijitkrm/monad-evm.git # Build and test cd monadbft-go go build ./... && go test ./... # Run single node cd ../monad-evm/evmd && go build -o evmd . ./evmd init mynode --chain-id monad-1 ./evmd start --engine=monadbft # Run 4-node devnet cd ../../monadbft-go/bridge go build -o devnet ./cmd/devnet ./devnet init-files -n 4 -o ./devnet-run -transport tcp ./devnet soak -o ./devnet-run -duration 3m -rate 200
monad-bftTestEvmIntegrityTransfers — 8-sender, 3-transfer scenario on 4-node TCP devnetBenchmarkFinalizeBlockEvm — Serial FinalizeBlock+Commit throughputBenchmarkConsensusCommit — Empty-block finalization ratesTestEngineConfigValidate — Configuration validation logicTestRetentionFallback — Retention window behaviorx/consensuskeys registry for epoch-boundary churninit command for validator key generation