feat: Multiple Validators#2323
Open
sergerad wants to merge 11 commits into
Open
Conversation
sergerad
force-pushed
the
sergerad-multi-validator
branch
from
July 14, 2026 21:38
7e6e725 to
539d422
Compare
sergerad
requested review from
Mirko-von-Leipzig and
kkovaacs
and removed request for
Mirko-von-Leipzig
July 16, 2026 01:34
sergerad
marked this pull request as ready for review
July 16, 2026 01:34
sergerad
force-pushed
the
sergerad-multi-validator
branch
from
July 17, 2026 01:43
0385cfa to
8eebf8a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Multi-validator signature integration:
SignBlockResponsegainspublic_key;rpc.protosync target isrepeated.GenesisState.validator_keys: ValidatorKeys; DBsignaturecolumn stores fullBlockSignatures.validator_urls: Vec<Url>, concurrent fan-out to all validators, positional signature aggregation.Single-signature genesis bootstrap: the genesis header commits the full validator set, but the block itself carries exactly one signature from the bootstrapping validator (verified against the committed set). Because a block's signatures are verified against its parent's committed set, the full set is automatically required to sign from block 1 onwards. The verification rule lives in
miden_node_utils::genesis::verify_genesis_signatures, shared by the store and the ntx-builder (which previously had its own copy of the all-must-sign check).validatorslist of hex-encoded public keys ingenesis.toml. When omitted, the set defaults to the bootstrapping validator's key alone; when specified, it must include the bootstrapping validator's public key (rejected with a dedicated error otherwise, since such a genesis could never verify).miden-validator bootstraptakes a single--key.hex/--key.kms-idfor the bootstrapping validator's own key; no other key material is passed on the command line.miden-validator pubkeysubcommand prints a key's public key (local or KMS) in the hex encoding thevalidatorsconfig list expects, so operators can hand their pubkey to the bootstrapper without sharing secrets.Added
miden-validator bootstrap --file <genesis.dat>: seeds a validator's local DB/block store from an already-signed genesis block without re-signing.Updated
scripts/run-node.shto run two validators end to end: it derives both validators' public keys viamiden-validator pubkey, writes them as thevalidatorslist of a generated genesis config, and validator 1 bootstraps and signs genesis with only its own key. Validator 2's directory is seeded via--filefrom that genesis output. Neither validator ever holds the other's secret key.Updated operator docs (
bootstrap-and-genesis.md,sequencer.md) to reflect the multi-validator flow: each non-bootstrapping operator sends their public key to the bootstrapping operator, who lists it in the genesis config'svalidatorsand signs genesis with their own key alone; every other validator seeds via--file.Changelog