onflow / ledger-app-flow

Apache License 2.0
10 stars 12 forks source link

Derivation changes #78

Closed relatko closed 2 years ago

relatko commented 2 years ago

Introduces cryptoOptions that contain info on curve and hash.

getPubkey, setSlot, and signTx calls receive cryptoOptions as input. Data saved on slots contain cryptoOptions. getSlot call returns also cryptoOptions.

Add derivation path screen in signTx in expert mode. Derivation path screen now contains relevant cryptoOptions (e.g. while signing tx we do not need to show hash). Additional warnings in case of curve or hash mismatch.