Bitcoinjs-lib: Generate uncompressed key

Created on 29 Jul 2017  路  3Comments  路  Source: bitcoinjs/bitcoinjs-lib

How can I generate uncompressed address?
This method outputs compressed version only:
keyPair.getAddress()

Thanks!

how to / question / docs

All 3 comments

keyPair.compressed = true || false
keyPair.getAddress()

Or, from the start

ECPair.makeRandom({ compressed: false })

Awesome, many thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

askucher picture askucher  路  3Comments

dakk picture dakk  路  3Comments

hoshsadiq picture hoshsadiq  路  3Comments

coingeek picture coingeek  路  4Comments

rbndg picture rbndg  路  3Comments