Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RvnMainNetParams = chaincfg.Params{ PubKeyHashAddrID: 0x3c, HDPrivateKeyID: [4]byte{0x04, 0x88, 0xad, 0xe4}, HDPublicKeyID: [4]byte{0x04, 0x88, 0xb2, 0x1e}, HDCoinType: 175, }
RvnMainNetParams rvn mainnet params
Functions ¶
Types ¶
type Account ¶
type Account struct { Mnemonic string Seed []byte MasterKey *hdkeychain.ExtendedKey AccountKey *hdkeychain.ExtendedKey Coin uint32 Account uint32 Net *chaincfg.Params }
Account account
func GenerateFromMnemonic ¶
GenerateFromMnemonic generate account from mnenomicInput for account and coin
func (Account) Derive ¶
func (a Account) Derive(change uint32, index uint32) DerivedKey
Derive derive change/index path
func (Account) PrintDerived ¶
PrintDerived derive accounts
type AccountJSON ¶
type AccountJSON struct { Mnemonic string `json:"mnemonic"` Seed string `json:"seed"` RootSK string `json:"rootsk"` AccountSK string `json:"accountsk"` AccountPK string `json:"accountpk"` }
AccountJSON json of data
type DerivedKey ¶
type DerivedKey struct { Account Account Change uint32 Index uint32 Address string Derived *hdkeychain.ExtendedKey }
DerivedKey derived key
Click to show internal directories.
Click to hide internal directories.