github.com/quantosnetwork/Quantos@v0.0.0-20220306172517-e20b28c5a29a/address/context.go (about) 1 package address 2 3 type Purpose uint32 4 5 const ( 6 PurposeBIP44 Purpose = 0x8000002C // 44' BIP44 7 PurposeBIP49 Purpose = 0x80000031 // 49' BIP49 8 PurposeBIP84 Purpose = 0x80000054 // 84' BIP84 9 ) 10 11 type CoinType = uint32 12 13 const ( 14 // QTO = QuantusOS Coin 15 QTO = 0x8000038a //906 16 ) 17 18 const ( 19 Apostrophe uint32 = 0x80000000 // 0' 20 ) 21 22 type AddressContext struct { 23 prefix string 24 purpose int 25 cointype int 26 account int 27 change int 28 index int 29 derivationPath string 30 derivationBytes []byte 31 createdAtBlock string 32 merkleRoot string 33 isMaster bool 34 loadedMaster []byte 35 validatorBytes []byte 36 checksum [4]byte 37 signedTimestamp string 38 signature string 39 }