Bitcoinjs-lib: can one WIF Address generate many bitcoin address?

Created on 2 Jun 2017  路  4Comments  路  Source: bitcoinjs/bitcoinjs-lib

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

how to / question / docs

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.

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mr-Mondragon picture Mr-Mondragon  路  3Comments

rbndg picture rbndg  路  3Comments

ghost picture ghost  路  3Comments

dakk picture dakk  路  3Comments

thrastarson picture thrastarson  路  3Comments