(BCH only) This PR implements correct parsing of "cashtokens" which get embedded into Txn outputs where the scriptPubKey appears. See: https://github.com/bitjson/cashtokens
Without this PR, when the next May 2023 network upgrade occurs, Fulcrum would not be able to index address "scripthashes" correctly on BCH for outputs and inputs containing cashtokens.
(BCH only) Support cash addresses that have type = 2 or type = 3 (CashToken-aware cashaddresses)
(BCH only) Support addresses that have a 256-bit hash payload (P2SH32)
Also this PR cleans up the code a little bit, removes some dead code, and adds a bunch of unit tests for existing code.
scriptPubKey
appears. See: https://github.com/bitjson/cashtokens