-
Notifications
You must be signed in to change notification settings - Fork 90
feat: hdwallet-gridplus add SafeCard validation #748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
94655a4
feat: add SafeCard validation with JIT signing checks
gomesalexandre cc6ec1e
chore: version packages to 1.62.13-gridplus-validation.7
gomesalexandre 1a2de02
refactor: simplify validation API - throw instead of return isValid
gomesalexandre 9963fd5
refactor: change isExternal to isInternal with reversed logic
gomesalexandre fed33f6
refactor: use type field and remove all console.logs
gomesalexandre df67c40
chore: version to 1.62.13-gridplus-validation.10
gomesalexandre a30995b
fix: use cached getActiveWallet instead of fetching again
gomesalexandre 92bcc7f
refactor: rename walletUid to activeWalletId for consistency
gomesalexandre 02f554f
fix: remove resetActiveWallets() call that cleared cache during pairing
gomesalexandre abf79f4
chore: restore resetActiveWallets() call in connectDevice()
gomesalexandre 6b5a48f
feat: add specific error message for internal wallet access
gomesalexandre 080c811
refactor: add isEmptyWallet helper for cleaner buffer comparisons
gomesalexandre 4d193f4
refactor: optimize buffer comparison to avoid allocation
gomesalexandre 980bb88
feat: add type-aware SafeCard validation error messages
gomesalexandre b9a90c7
feat: pass expectedType through all validation call paths
gomesalexandre f84db93
chore: revert package.json version bumps to master baseline
gomesalexandre f79fac9
chore: revert sandbox and integration package.json to master
gomesalexandre 8b6bbd0
chore: restore comment explaining resetActiveWallets purpose
gomesalexandre e638101
chore: remove unnecessary braces and comment
gomesalexandre 9779859
chore: remove redundant type annotation
gomesalexandre 8cfee51
refactor: extract SafeCardType for reusability
gomesalexandre 503a451
chore: remove unused walletName from validation return
gomesalexandre 7f36a79
refactor: use viem zeroHash for cleaner empty wallet check
gomesalexandre 63ec5fe
chore: lint fix - quote style
gomesalexandre 45b2fee
refactor: rename isEmptyWallet to isZeroSafecardUid and fix stale com…
gomesalexandre d4763b4
refactor: rename to isSafecardDisconnected for clarity
gomesalexandre 68f2227
refactor: reverse logic to isSafecardConnected for clarity
gomesalexandre adc51f4
refactor: throw error if expected ID not set before signing
gomesalexandre b00dfb2
[skip ci] trigger CI skip
gomesalexandre e1f9119
[skip ci] chore: remove unnecessary braces from single-line if
gomesalexandre 7d31e00
[skip ci] chore: simplify error message
gomesalexandre acfa893
[skip ci] chore: add blank lines after guard clauses
gomesalexandre fc4723c
[skip ci] refactor: remove unused password parameter from connectDevice
gomesalexandre 9cf7045
chore: trigger CI
gomesalexandre 2938229
chore: version to 1.62.13-gridplus-validation.17
gomesalexandre be61514
[skip ci] refactor: export SafeCardType from gridplus and import in a…
gomesalexandre d5ed205
[skip ci] fix: update sandbox to destructure pairDevice result
gomesalexandre b99f6b8
Merge branch 'master' into feat_gridplus_validation_v2
gomesalexandre 50218b2
chore: version packages to 1.62.16-bro-seriously-fml.0
gomesalexandre 951a647
chore: update internal dependencies after prepublish build
gomesalexandre f26738b
chore: version packages to 1.62.16-bro-seriously-fml.1
gomesalexandre 1e845ea
chore: update internal dependencies after prepublish build
gomesalexandre af2fe3b
feat: prepare for yeet
gomesalexandre 3d5e95b
feat: yarn.lock too
gomesalexandre b32d09c
chore(release): publish 1.62.16
gomesalexandre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.