refactor: rename accaddr package to address

This commit is contained in:
Prad Nukala
2024-12-02 14:53:41 -05:00
parent 31bcc21c35
commit e62ec45e82
7 changed files with 5 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
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)
}