krux icon indicating copy to clipboard operation
krux copied to clipboard

Add support for more derivation paths

Open ghost opened this issue 2 years ago • 0 comments

Add a screen following this one:

If you select Single-key, the following screen shows:

- Taproot (m/86h/0h/0h) -
  Native Segwit (m/84h/0h/0h)
  Nested Segwit (m/49h/0h/0h)
  Legacy (m/44h/0h/0h)
  Custom (m/?)

If you select Multisig, the following screen shows:

- Native Segwit (m/48h/0h/0h/2h) -
  Nested Segwit (m/48h/0h/0h/1h)
  Custom (m/?)

If you select Custom, a new screen appears where you first input the number of components (or levels) in the path, followed by another screen where you see m / _ / _ / _ at the top and a numpad below, with Del, Go, and an additional h key to indicate if it is hardened or not. After Go is selected, the next path component will be editable until all components have been added.

With this change, the logic in wallet.py to default to a wpkh script type will need to be updated to check specifically for the m/84h/0h/0h derivation path.

ghost avatar Mar 13 '22 06:03 ghost