WebOfTrustInfo / txref-conversion-js

Javascript library for converting txids to txrefs and back
MIT License
3 stars 7 forks source link

SLIP-0173 - Human readable prefixes #14

Open hawkmauk opened 4 years ago

hawkmauk commented 4 years ago

The prefixes for the Bech32 encoded txref's are tx for BTC Mainnet and txtest for BTC Testnet. Should these instead conform to the human readable parts in SLIP-0173 that is referred to in BIP-0173 that defines Bech32? Changing them to bc for BTC Mainnet and tb for BTC Testnet would bring the code in line with the existing conventions.

hawkmauk commented 3 years ago

To give a bit more context to this: using tx and txtest was as it seemed to be too restrictive to either mainnet or testnet3. There are a number of other possibilities that came to mind such as using regtest or signet for testnet which offer a better platform to develop on. Perhaps txtest could be used for all of these but it could make it more confusing to follow tutorials using the same HRP value for multiple chains. The possibility of utilising this on the liquid sidechain for mainnet also sprang to mind.