I'm trying to use
cardano-cli to control the addresses controlled by my Yoroi wallet, so I thought the first thing to do is to import the keys and addresses.
I did this:
$ # Type the seed phrase for the Yoroi wallet into a file phrase.txt. $ cat phrase.txt | cardano-address key from-recovery-phrase Shelley > root.prv $ cat root.prv | cardano-address key child 1852H/1815H/0H/0/0 | cardano-address key public --with-chain-code | cardano-address address payment --network-tag mainnet
The output is "addr1v..." but in the Yoroi the 0th address is "addr1q...", so they are very different. What am I missing? My ultimate goal is to get the addresses and keys I need to build and sign transactions using
cardano-cli, and I'm stuck at even getting the right addresses using
Following the instructions from the
cardano-addresses README.md, I was able to generate a "delegated payment address" that matches the 0th address I see in Yoroi. However,
cardano-cli transaction sign requires a
--signing-key-file, which is normally generated using
cardano-cli address key-gen, and I don't know how to get a cardano-cli-style signing key file from the stuff I can get from
cardano-wallet can be used to make payment transactions, but AFAICT only
cardano-cli can be used to mint tokens; I don't see anything about minting tokens in the help for
cardano-address address delegation, which requires the stake verification key to be generated first.
cardano-clito build and sign a transaction. For example,
cardano-cli signrequires a
--signing-key-fileand I need to figure out how to generate that.