First thing required is extracting the stake key hardware signing file (".hwsfile") and the stake key verification key (".vkey") from the hardware wallet. For this, the
cardano-hw-clibinary file is required (https://github.com/vacuumlabs/cardano-hw-cli/releases/latest).
Create the following script as
hw-keys.shand save it in the
keysfolder, where the
wallet.shscript is also stored:
cardano-hw-cli address key-gen \
--path 1852H/1815H/0H/2/0 \
--verification-key-file hw-stake.vkey \
#cardano-hw-cli address key-gen \
#--path 1852H/1815H/0H/0/0 \
#--verification-key-file hw-payment.vkey \
Only the first command is required for the stake key, the second command is included as an example for extracting the hardware signing file for the first payment address of the hardware wallet.
hw-stake.hwsfilefile will be required for witnessing transactions with the hardware wallet, and the
hw-stake.vkeyfile will be required when creating the new stake pool registration certificate.
The script must be executed with the hardware wallet connected to the computer and unlocked, and with the Cardano application started. It will be required to confirm the key export on the hardware wallet.