cmdruid / tapscript

A humble library for working with Tapscript and Bitcoin Transactions.
https://www.npmjs.com/package/@cmdcode/tapscript
Creative Commons Zero v1.0 Universal
188 stars 49 forks source link

Custom Address Prefix #27

Closed mgpai22 closed 7 months ago

mgpai22 commented 8 months ago

It would be useful to have the ability to use custom address prefixes while doing address encoding. For example Litecoin. Found the encoding for it here.

cmdruid commented 8 months ago

I agree that it would be nice to have more config options for the address tool. I'm not sure of all the requirements needed to format an LTC address, as there can be more specifications like encoding type, how to hash the pubkey, etc.

I may consider adding configs for this in V2 of the library, so that you can specify encoding type, prefix, and a hasing method.