xch-dev / sage

The sagest wallet for the Chia blockchain.
Apache License 2.0
19 stars 6 forks source link

Missing Coin Records #10

Open thesemaphoreslim opened 2 months ago

thesemaphoreslim commented 2 months ago

I imported an existing mainnet mnemonic into Sage. The Sage wallet is only finding 1 coin record for this wallet but it actually has 2 coins when viewed using the Chia Reference Wallet or when using the get_coin_records rpc. Screenshot provided showing what Sage displays vs get_coin_records vs Chia Reference Wallet. image

Rigidity commented 2 months ago

Is this coin on a hardened wallet address?

thesemaphoreslim commented 2 months ago

I'm not sure what "hardened wallet address" means. The imported mnemonic is from a Goby wallet that I use for integration with things like warp.green - so it receives coins from my warm wallet and hardware wallet. This is the missing coin id so you don't hafta try and type it from the screenshot :) - 0x3edcc3f8dcf72432128b1e6f89dec58ae083a4a4a36e66dfd39de72931a0dfb3

Rigidity commented 2 months ago

For posterity's sake, to quote Discord:

There are two types of keys, hardened (you need the secret key to derive children) and unhardened (you can use the master public key to derive children as well). The latter (also known as observer keys) can be used to calculate a wallet's child keys and addresses without the secret key, which enables monitoring tools and cold wallets to be built. But this comes at the cost of privacy if the master public key were leaked, so hardened keys are a bit more private.

Sage does not currently support hardened keys, but once #13 is resolved it will.