In bip136, here are examples,
Genesis Coinbase Transaction (Transaction #0 of Block #0): tx1:rqqq-qqqq-qmhu-qhp
Transaction #2205 of Block #466793: tx1:rjk0-uqay-zsrw-hqe
I used your tool to en/decode these txref but I got errors or inconsistent result. Here is my command to encode,
$ ./txref -e -m 3 -b 466793 -p 2205
// result: encodedTxref: tx1:rjk0-u5ng-4jsf-mc
$ ./txref -e -m 3 -b 0 -p 0
// result: encodedTxref: tx1:rqqq-qqqq-qmhu-qk
and if I decode
I got error,
err: Decoded data is not 8 or 10 characters long
Any idea? Thanks.