ofek / bit

Bitcoin made easy.
https://ofek.dev/bit/
MIT License
1.25k stars 216 forks source link

Question on compressed and uncompressed addresses #175

Open fredsta98 opened 1 year ago

fredsta98 commented 1 year ago

I've followed the docs and managed to only be able to produce an uncompressed address however Bitcoin has both compressed and uncompressed for P2PKH. I can do it in go using btcutils, but I can't find documentation on how to do it with bit. Additionally this library's documentation also seem to lack documentation for generating addresses that aren't either Legacy or Legacy Segwit addresses.

How can I generate compressed addresses?