Closed
Description
Hi,
I would like to use your library. I create my own keys with the script written below. In the end, my payment and stake signing keys are extended versions. I think it's caused by using mnemonics to generate keys. However, in the library, NaCL cannot use them.
Do you have any idea to use or convert PaymentExtendedSigningKeyShelley_ed25519_bip32?
#Root Private Key
cardano-wallet key from-recovery-phrase Shelley < mnemonics.prv > root.prv
#Root Public Key
cardano-address key public --with-chain-code < root.prv > root.pub
# Address Private and Public Keys
cat root.prv \
| cardano-wallet key child 1852H/1815H/0H/0/0 \
| tee address.prv \
| cardano-wallet key public --with-chain-code > address.pub
cardano-cli key convert-cardano-address-key --shelley-payment-key --signing-key-file address.prv --out-file payment.skey
cardano-cli key verification-key --signing-key-file payment.skey --verification-key-file extended_payment.vkey
cardano-cli key non-extended-key --extended-verification-key-file extended_payment.vkey --verification-key-file payment.vkey
#Staking Private and Public Keys
cat root.prv \
| cardano-wallet key child 1852H/1815H/0H/2/0 \
| tee staking.prv \
| cardano-wallet key public --with-chain-code > staking.pub
cardano-cli key convert-cardano-address-key --shelley-stake-key --signing-key-file staking.prv --out-file stake.skey
cardano-cli key verification-key --signing-key-file stake.skey --verification-key-file extended_stake.vkey
cardano-cli key non-extended-key --extended-verification-key-file extended_stake.vkey --verification-key-file stake.vkey
cardano-cli address build --payment-verification-key-file payment.vkey --stake-verification-key-file stake.vkey --out-file address.addr --mainnet