Closed andrewshvv closed 6 years ago
You can use the chaincfg.Register
method to register your own chaincfg.Params
instances. It is true that the default ones for Bitcoin are registered automatically in the init()
function, though.
@stevenroose ooh god, your right Register
... 😛 Thanks
Hey, thanks for the library!
I have a questions: Have the DecodeAddress function were designed to be used with other bitcoin-like chains also? If so, it seems like at this moment it couldn't be used like this because of:
chaincfg.IsPubKeyHashAddrID
function usespubKeyHashAddrIDs
map which is initialised with default mainbitcoin
net parameters, rather thandefaultNet
DecodeAddress
field.