bitcoincashorg / spec

Technical specifications
112 stars 64 forks source link

Conversion between legacy address and cashaddr in Node.js #45

Closed abrkn closed 6 years ago

abrkn commented 6 years ago

I'm looking for some help to convert between legacy (base58) and cashaddr (base32) in node.js for a Discord bot. Anyone have example code? They're all P2PKH addresses generated by Bitcoin ABC.

Issue: https://github.com/abrkn/shilly/issues/40

schancel commented 6 years ago

Look around in here, I think you'll find what you're looking for: https://github.com/bitcoincashjs

also, my example converter code is up in go: https://github.com/schancel/cashaddr-converter

abrkn commented 6 years ago

That works great. Thanks!