Repository navigation
fix(signing): use the validated profile's ledger account - #223
Merged
jackchuma merged 1 commit intoOct 31, 2026
Conversation
Co-authored-by: Toshi <toshi-noreply@coinbase.com> J-Engine-Session: toshi:1d21a553-0e98-4a5b-96cb-92f10524c8ce
Collaborator
✅ Heimdall Review Status
|
Collaborator
Author
Review round 1Reviewers: cbhq-openai/gpt-6.1-sol, anthropic/claude-opus-5-5 (parallel). Both: premise worth it,
🤖 Reply generated with Toshi |
jackchuma
marked this pull request as ready for review
October 30, 2026 19:26
xenoliss
approved these changes
Oct 31, 2026
0xth4nh
reviewed
Oct 31, 2026
0xth4nh
left a comment
Contributor
There was a problem hiding this comment.
Looks Good to Thanh's Toshi
0xth4nh
approved these changes
Oct 31, 2026
jackchuma
deleted the
toshi/chain-6505-bind-the-signing-account-to-the-validated-validation-46a38c06
branch
October 31, 2026 17:48
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.
Linear: https://linear.app/coinbase/issue/CHAIN-6505/bind-the-signing-account-to-the-validated-validation-profile
What changed? Why?
The hardware-signing step took its Ledger account from the profile list fetched at user selection (
/api/upgrade-config). Validation re-reads the Validation profile from disk later, so a profile edited between listing and validation could make the signer use a different account than the one validated.ValidationDatanow has a required top-levelledgerId, set byvalidateUpgradefrom the loaded Validation profile on both return paths (success and task-origin failure).page.tsxpassesvalidationData.ledgerIdtoHardwareSigninginstead ofselectedUser.ledgerId.ledgerAccount(no server-side reread), per the ticket.Notes to reviewers
page.tsx) has no component test; the repo has no React component test setup.ledgerId; signing step uses it; sign route trusts client; regression test at thevalidateUpgradeseam).How has it been tested?
src/lib/__tests__/validation-service.test.tsdrivesvalidateUpgradeagainst a fixture Task on disk, replacing onlyStateDiffClient. It asserts the returnedledgerIdequals the profile's (7) with task origin disabled, and also on the task-origin-failure early return.npm test(161 passed),npm run lint,npx tsc --noEmit,prettier --checkon changed files.