Hi i'm completely new to this i have compile bitcoin.min.js to test at browser(client side) Just wonder if we can generate multi bitcoin address from single WIF
A "WIF address" is a base58check encoded private key.
A private key has a public key.
The public key can be encoded in a compressed and uncompressed format.
An encoded public key can be used in scripts.
Scripts can be used raw, as a P2SH address, some can even be a P2PKH address!
The question, can a "WIF address generate many bitcoin address", isn't entirely clear.
It can be used to generate two P2PKH addresses, using a compressed and uncompressed public key.
So if I got a keypair from wif and I need to generate 2000 Bitcoin address from it I need to get public key first? Or I could use like keypair.getAddress(???)
@modernduck I suggest you look at and use BIP32. An example can be seen here.
Thank you so much I think it's working now
Most helpful comment
A "WIF address" is a base58check encoded private key.
A private key has a public key.
The public key can be encoded in a compressed and uncompressed format.
An encoded public key can be used in scripts.
Scripts can be used raw, as a P2SH address, some can even be a P2PKH address!
The question, can a "WIF address generate many bitcoin address", isn't entirely clear.
It can be used to generate two P2PKH addresses, using a compressed and uncompressed public key.