0

The two all above are the process to create addresses, but they are a little different, which I could not understand.

I have 3 questions

  1. Why in the tutorial, we can create payment address without mnemonic phrase?

  2. In the tutorial, there is no step to create root key. What is the root key? It is verification key?

  3. The video says that we can create multiple addresses from the root key. I tried to create different addresses using the below command, but they all generated the same address. How can I generate different addresses by using cardano-cli?

cardano-cli address build \
    --payment-verification-key-file payment.vkey \
    --stake-verification-key-file stake.vkey \
    --out-file payment.addr \
    --mainnet

Any hint would help me a lot. Thank you

1

1 Answer 1

1

You're mixing up between an HD Wallet and payment/stake address keys. HD Wallet is off-chain concept, creating root keys for which are described here.

You'd essentially be able to derive root key of HD wallet using mnemonics and then derive the address by following the derivation paths, as explained here.

5
  • Thanks very much. I did not know that. When I create address (addrxxxxx) in my Yoroi wallet, that follows the concept of HD Wallet? If so, my address is on-chain. So, I did not understand why "HD Wallet is off-chain concept"?
    – cdt
    Commented Dec 14, 2022 at 12:20
  • Wallet created in Yoroi is HD Wallet, yes. As regards why concept is off-chain, that's because protocol does not know about these wallets, it only knows about addresses - the cryptography explained above is what allows you to have multiple payment keys derived from a root key that's derived from mnemonics
    – RdLrT
    Commented Dec 14, 2022 at 13:28
  • Thanks, I understand. So, the tutorial above (developers.cardano.org/docs/stake-pool-course/handbook/… ) is also about creating addresses which do not follow the concept of HD wallet. Both doing the same thing (creating address), but why we need both of them?
    – cdt
    Commented Dec 14, 2022 at 13:53
  • That particular link is about creating keys/addresses indeed, you dont need both - it just depends on your use-case. It gives the option that's available from using cardano-cli, for HD wallets - you'd need to work with cardano-address/ cardano-wallet (if using CLI) or one of the libraries
    – RdLrT
    Commented Dec 14, 2022 at 20:21
  • 1
    Thanks, it helps me a lot
    – cdt
    Commented Dec 15, 2022 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.