vacuumlabs/cardano-hw-cli

Expand the address verification to enterprise- and staking-addresses too

Opened this issue · 0 comments

Currently its possible to verify base-addresses on the Ledger/Trezor hardware gui via the address show command like:

cardano-hw-cli address show --payment-path 1852H/1815H/0H/0/0 --staking-path 1852H/1815H/0H/2/0 --address-file ledger.base.addr

However, this only works for payment base-addresses right now. So we have two limitations to overcome to make this a nice all-in-one solution:

  1. It should be possible to also verify the staking address on the hw gui. With an extra request using the staking-address-file as the --address-file input or directly in the gui together with the base address. Because both payment and staking paths are present at this time in the ledger device, so it should be possible to show the staking address on the next page.
  2. It should be possible to also verify enterprise addresses with a reduced set of needed input parameters like:
    cardano-hw-cli address show --payment-path 1852H/1815H/0H/0/0 --address-file ledger.enterprise.addr without the need to provide a staking path or staking script hash (there is none with enterprise payment addresses)