There is already a good almost complete answer here (but missing the cryptography explanation): How is a wallet's balance computed?
Is a bitcoin wallets balance calculated on the client computer app? eg. Leger Live
How is bitcoin wallet balance calculated cryptographically?
Does Ledger Live app check/compare each transaction+hash & transaction+signature hash like mempool nodes do?
Or does it only look at the unspent output addresses and check if they are children of wallet public key? If so how does it do this in cryptography terms?
I create 5 bitcoin wallet public addresses & receive bitcoin on them.
I reset&restore my hardware wallet from recovery recovery.
I open my wallet app. example Ledger live.
How does the wallet app calculate WHICH bitcoin public addresses are children of hardware wallets recovery seed private key? It has no cache at this point so how does it calculate this.
There has to be some hashing to do this and I'm wondering what it hashes to do it.
– pablorenato Apr 03 '21 at 00:15