OpenBazaar / multiwallet

API based multi-cryptocurrency wallet
MIT License
72 stars 41 forks source link

Need representation of "Invalid" value of wallet.CoinType #50

Open placer14 opened 5 years ago

placer14 commented 5 years ago

Would be nice for there to be a sentinel value representing an "Invalid" or zero/unset state of wallet.CoinType. We are unable to rely on 0 since that is the definition of wallet.Bitcoin. We currently refer to an "Invalid" type in github.com/OpenBazaar/openbazaar-go/wallet/builder.go as 4294967295 (or the maximum for a uint32, which could also be ^uint(0)) and would be happy to see that made into a formal constant for referencing an unknown or unset type.