I was looking into wallets and the information that they contain. I found this post:
What information does a wallet contain?
I thought that wallets have only one key pair. Why is there more than one key pair in a wallet?
Bitcoin Stack Exchange is a question and answer site for Bitcoin users, developers, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI was looking into wallets and the information that they contain. I found this post:
What information does a wallet contain?
I thought that wallets have only one key pair. Why is there more than one key pair in a wallet?
Most wallets have indeed only one main secret, but they use it to generate many different addresses.
When you receive a payment in Bitcoin, the sender locks up funds with a locking script that can only be spent using your private key. The locking scripts are deterministically derived from your public key and visible to all other users on the network. If you were to use only a single key pair, any observer on the network could assume that all the corresponding funds belong to the same user and could easily cluster all your payments.
Wallets generally steer the user towards using a new address for every payment they receive, to decouple funds and achieve some financial privacy. However, if all of those keys were unrelated, we'd have to make a new wallet backup after every payment, so today's wallets generally work by having one main secret from which any number of sub-keys are derived for the individual payments.
first of all we need to understand which wallet you are talking about i.e blockchain or bitcoin core or some other wallet. but in all cases wallet owner have the option to import more than one private keys in a single wallet that is why you see more than one pair or private public keys in the wallet