cmdruid / tapscript

A humble library for working with Tapscript and Bitcoin Transactions.

Home Page:https://www.npmjs.com/package/@cmdcode/tapscript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Address Prefix

mgpai22 opened this issue · comments

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.

commented

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.