-
Notifications
You must be signed in to change notification settings - Fork 268
LCW-1128-Add-support-for-Trezor #2565
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
base: main
Are you sure you want to change the base?
Conversation
final inputTx = BtcTransaction.fromRaw(hex.encode(inputTxRaw!)); | ||
final inputOutputIndex = psbt.getInputOutputIndex(i); | ||
|
||
final publicKeys = psbt.inputMaps[i].keys.where((e) => e.startsWith("06")); |
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.
what's 06
? and also this part can use a little bit of code documentation
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.
06
is the psbt key for a public key. So here we are selecting all public keys of that input
linkViewModel: linkViewModel, | ||
tradeMonitor: tradeMonitor, | ||
nodeSwitchingService: nodeSwitchingService, | ||
trezorConnect: getIt<TrezorConnect>(), |
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.
why keep the object live for every instance of the app, just to check if a deep link contains a static string callbackBackUri
just check that static string in root.dart
and if it indeed is targeted for Trezor, then initialize this
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.
I didn't want to have a getIt
call inside root.dart
# Conflicts: # lib/src/screens/connect_device/select_device_manufacturer_page.dart
…transaction signing logic, and improve modularity in hardware wallet services
…and cleanup Trezor chainId handling logic
Description
Add trezor support for BTC, LTC, ETH, POL using Trezor Connect
Pull Request - Checklist