btcd
btcd copied to clipboard
chaincfg.Params.PubKeyHashAddrID one byte prefix
Maybe it would be better if such fields like PubKeyHashAddrID or ScriptHashAddrID of the structure were a slice of bytes. Because some bitcoin forks have prefixes larger than one byte. For example zcash: https://github.com/zcash/zcash/blob/60b971f8af47d8f4032789078c0c9c846bbf6710/src/chainparams.cpp#L152