Skip to content

Conversation

konstantinullrich
Copy link
Contributor

Description

Add trezor support for BTC, LTC, ETH, POL using Trezor Connect

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

final inputTx = BtcTransaction.fromRaw(hex.encode(inputTxRaw!));
final inputOutputIndex = psbt.getInputOutputIndex(i);

final publicKeys = psbt.inputMaps[i].keys.where((e) => e.startsWith("06"));
Copy link
Contributor

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

Copy link
Contributor Author

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>(),
Copy link
Contributor

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

Copy link
Contributor Author

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants