mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
19 lines
444 B
Go
19 lines
444 B
Go
package address
|
|
|
|
type CoinType uint32
|
|
|
|
const (
|
|
// Hardened offset for BIP-44 derivation
|
|
HardenedOffset uint32 = 0x80000000
|
|
|
|
// Registered coin types for BIP-44
|
|
CoinTypeBitcoin CoinType = CoinType(0 + HardenedOffset)
|
|
CoinTypeEthereum CoinType = CoinType(60 + HardenedOffset)
|
|
CoinTypeSonr CoinType = CoinType(703 + HardenedOffset)
|
|
)
|
|
|
|
// Uint32 returns the coin type as a uint32.
|
|
func (c CoinType) Uint32() uint32 {
|
|
return uint32(c)
|
|
}
|