bitcore-lib icon indicating copy to clipboard operation
bitcore-lib copied to clipboard

Bech32 & segwit address support?

Open afk11 opened this issue 8 years ago • 7 comments

I've been reviewing for common libraries that may not yet have segwit address support. I haven't seen anyone work on it yet, please add this soon!

https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

afk11 avatar Aug 31 '17 09:08 afk11

Any news about this ? can't get UTXOs for bech32 Invalid address: Checksum mismatch. Code:1

youssefgh avatar Jan 04 '18 18:01 youssefgh

cough https://github.com/bitpay/bitcore-lib/issues/119 https://github.com/bitpay/bitcore-lib/graphs/code-frequency

youssefgh: even if they added bech32, you won't be able to spend those coins with this library. Maybe time to jump to another JS library like bcoin/bitcoinjs.

afk11 avatar Jan 04 '18 18:01 afk11

Yes, @afk11 am already using bitcoinjs. i only use bitpay's insight-api to query balances and UTXOs I think i should start looking for alts Thanks for the heads up !

youssefgh avatar Jan 04 '18 20:01 youssefgh

@youssefgh Did you ever manage to find an alternative that support Bech32? I've run into the same issue since the insight-api still doesn't support it.

coreyphillips avatar Nov 13 '18 15:11 coreyphillips

@coreyphillips yes, a tricky one but it works am using electrumx server (you can run your own or use one of the public testnet or mainet ones) check my wallet to see how since electrumx doesn't support Rest, i had to create a java proxy to convert Rest calls to Json-rpc over TCP calls, check it out here You can test that live on testnet or mainnet

youssefgh avatar Nov 13 '18 16:11 youssefgh

@youssefgh That's awesome, thanks. I'll give it a look. Otherwise, I'll end up creating an alternative api to insight-api as well.

coreyphillips avatar Nov 14 '18 01:11 coreyphillips

@coreyphillips cool, you're welcome, happy to help !

youssefgh avatar Nov 14 '18 01:11 youssefgh