ddoff
1
When I recover the wallet using the recovery phrase I can see the UTXO for the list of addresses:
echo $RECOVERY_PHRASE | cardano-wallet wallet create --from-recovery-phrase
cardano-wallet addresses list
cardano-cli query utxo --address addr_testqq4tgyx2r3qc27260hz7455r7mtwd7dphajdjvp5m3ajn8ausj6q44k6t2e0mrqy2seascvadj3fmnvmanhmesrarzhqacvsgl --testnet-magic 1097911063
All good.
Yet when I am trying to recover using cardano-address, I do not seem to be able to derive the same list of payment addresses.
echo $RECOVERY_PHRASE | 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 testnet
and if I try to query UTXO - it comes empty.
cardano-cli query utxo --address addr_test1vpuvqgv86yr45ujky2d5nda5cm6z0wad22x23p0mzjkqldgmzklum --testnet-magic 1097911063
What do I miss?
I would like to be able to handle transactions using cli, without cardano-wallet.
ddoff
2
Interesting observation:
Inspecting the cardano-address derived address:
echo addr_test1vpuvqgv86yr45ujky2d5nda5cm6z0wad22x23p0mzjkqldgmzklum | cardano-address address inspect
Result:
{
"address_style": "Shelley",
"network_tag": 0,
"spending_key_hash_bech32": "addr_vkh10rqzrp73qad8y43zndym0dxx7snmht2j3j5gt7c54s8m2n5dc8m",
"stake_reference": "none",
"spending_key_hash": "78c02187d1075a7256229b49b7b4c6f427bbad528ca885fb14ac0fb5"
}
Inspecting cardano-wallet address:
echo addr_test1qq767q387pqxt85cu2z7t2p8h7vl06w0xjh8edknfffx43979qda7m9kv5d8sgl6zhwg5nud40d3nrpgykndzyfglefslv5xd8 | cardano-address address inspect
Result:
{
"address_style": "Shelley",
"network_tag": 0,
"spending_key_hash_bech32": "addr_vkh18khsyflsgpjeax8zshj6sfaln8m7nne54e7td5622f4vgjymmgh",
"stake_key_hash_bech32": "stake_vkh1hc5phhmvkej357prlg2aezj03k4akxvv9qj6d5g39rl9x2r20s2",
"stake_reference": "by value",
"spending_key_hash": "3daf0227f040659e98e285e5a827bf99f7e9cf34ae7cb6d34a526ac4",
"stake_key_hash": "be281bdf6cb6651a7823fa15dc8a4f8dabdb198c2825a6d11128fe53"
}
Looks like the staking key hash is included.
How can I replicate the same key using cardano-address?