-
Notifications
You must be signed in to change notification settings - Fork 220
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
feat: ledger blind sign #6264
feat: ledger blind sign #6264
Conversation
Test Results (CI) 3 files 120 suites 40m 56s ⏱️ Results for commit 147d5b9. ♻️ This comment has been updated with latest results. |
Test Results (Integration tests) 2 files + 2 11 suites +11 40m 9s ⏱️ + 40m 9s For more details on these failures, see this check. Results for commit 147d5b9. ± Comparison against base commit 9920916. ♻️ This comment has been updated with latest results. |
41c1c99
to
f86d7e3
Compare
accf6a0
to
70c17ab
Compare
94a5f07
to
2c50be5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, small comments, then we can merge this
base_layer/wallet/tests/output_manager_service_tests/service.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good, just some pertinent comments to be addressed in this PR or alternatively new issues to be created to address the comments after this PR is merged please.
applications/minotari_ledger_wallet/wallet/src/handlers/get_script_signature.rs
Outdated
Show resolved
Hide resolved
applications/minotari_ledger_wallet/wallet/src/handlers/get_script_offset.rs
Show resolved
Hide resolved
applications/minotari_ledger_wallet/wallet/src/handlers/get_metadata_signature.rs
Show resolved
Hide resolved
All changes made, or suggestions noted. The zeroizing caused me a bit of grief up front but it's all working now. I've ensured issues are on the board for stuff like ensuring the correct ledger device is selected, checking app version etc. I knew we'd need to do these things but figured it might be best to start implementing in smaller more manageable PRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed one private key for zeroing
applications/minotari_ledger_wallet/wallet/src/handlers/get_metadata_signature.rs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
let sender_offset_private_key = Zeroizing::new(derive_from_bip32_key( | ||
account, | ||
sender_offset_key_index, | ||
KeyType::SenderOffset, | ||
)?); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets fix after merge, we do not need the double Zeroizing here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh yeah. That was a mistake. I'll tidy it in the next PR.
Description
Add key manager support to create transactions on chain where a ledger device is required to spend outputs
Motivation and Context
Cold storage support
How Has This Been Tested?
Manual localnet testing
Breaking Changes
This PR changes transaction hash mismatches which will invlaidate previous utxo's.