Repository navigation
feat(client-cli): improve the node start command and the blocks and transactions certification - #3682
Merged
Merged
Conversation
jpraynaud
requested review from
Alenar,
damrobi and
turmelclem
as code owners
November 4, 2026 15:57
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified, and the changes address command validation, error propagation, required key configuration, and related regression coverage.
No open issues 🎉
What changed in this PR
This pull request hardens the client CLI’s generated Cardano node startup commands and requires a configured genesis verification key for certificate-verifying block and transaction certification commands.
Changes:
- Validate network and Cardano node version values before generating Docker commands.
- Propagate command-generation errors through database downloads and snapshot conversion.
- Require the configured genesis verification key for block and transaction certification.
- Improve missing-key configuration guidance and add related regression tests.
| File | Description |
|---|---|
mithril-client-cli/src/utils/cardano_db.rs |
Adds node-command value validation and related tests. |
mithril-client-cli/src/commands/tools/utxo_hd/snapshot_converter.rs |
Propagates startup command validation errors during snapshot conversion. |
mithril-client-cli/src/commands/cardano_transaction/certify/mod.rs |
Requires the configured genesis verification key for transaction certification and adds tests. |
mithril-client-cli/src/commands/cardano_db/shared_steps.rs |
Propagates startup command validation errors after database downloads. |
mithril-client-cli/src/commands/cardano_block/certify.rs |
Requires the configured genesis verification key for block certification and adds a regression test. |
mithril-client-cli/src/command_context.rs |
Separates certificate-verifying client setup from fallback setup and improves missing-key guidance. |
Review effort: Lite
jpraynaud
temporarily deployed
to
testing-preview
November 4, 2026 16:11 — with
GitHub Actions
Inactive
jpraynaud
temporarily deployed
to
testing-2-preview
November 4, 2026 16:11 — with
GitHub Actions
Inactive
damrobi
approved these changes
Nov 5, 2026
damrobi
left a comment
Collaborator
There was a problem hiding this comment.
LGTM overall, I just raised a couple of concerns regarding late errors in the execute commands
jpraynaud
force-pushed
the
jpraynaud/node-start-command-input-validation
branch
from
November 5, 2026 14:16
44a79a5 to
0f39078
Compare
jpraynaud
temporarily deployed
to
testing-preview
November 5, 2026 14:28 — with
GitHub Actions
Inactive
jpraynaud
temporarily deployed
to
testing-2-preview
November 5, 2026 14:28 — with
GitHub Actions
Inactive
jpraynaud
temporarily deployed
to
testing-2-preview
November 5, 2026 14:57 — with
GitHub Actions
Inactive
jpraynaud
temporarily deployed
to
testing-preview
November 5, 2026 14:57 — with
GitHub Actions
Inactive
Alenar
approved these changes
Nov 5, 2026
…he node start command
…cation commands The transaction and block certification commands verify the certificate chain, so they take the key the download commands require instead of the fallback reserved for the commands that never verify one.
…essage functions The functions verify only the proof, the certificate chain and the message binding are separate calls.
… guide Warn that computing a message certifies nothing by itself and check the message of the Cardano transactions example against its certificate, in the current and maintained versions.
jpraynaud
force-pushed
the
jpraynaud/node-start-command-input-validation
branch
from
November 6, 2026 14:42
d95ca00 to
fdabf6a
Compare
This branch was successfully deployed
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.
Content
This PR includes a validation of the values used to build the node start command and a mandatory genesis verification key in the certification commands of the client CLI:
docker runcommand printed after a Cardano database download or a snapshot conversion: both must be non empty strings of at most 32 lowercase letters, digits, dots and hyphensprivatenetwork of custom magic networks, thelatestandpre-releasenode version aliases, and new networks or tag formatscardano-transaction certifyandcardano-block certifycommands, which verify the certificate chain, instead of using the fallback reserved for the commands that never verify onePre-submit checklist