Documentation ¶
Index ¶
- func GetAccountKey(rootKey bip32.XPrv, num uint) bip32.XPrv
- func GetAddress(accountKey bip32.XPrv, net string, num uint32) *address.BaseAddress
- func GetExtendedPrivateKey(privateKey []byte, publicKey []byte) bip32.XPrv
- func GetKeyFile(keyFile KeyFile) string
- func GetPaymentKey(accountKey bip32.XPrv, num uint32) bip32.XPrv
- func GetRootKey(entropy []byte, password []byte) bip32.XPrv
- func GetRootKeyFromMnemonic(mnemonic string) (bip32.XPrv, error)
- func GetStakeKey(accountKey bip32.XPrv, num uint32) bip32.XPrv
- func NewMnemonic() (string, error)
- type KeyFile
- func GetPaymentExtendedSKey(paymentKey bip32.XPrv) KeyFile
- func GetPaymentSKey(paymentKey bip32.XPrv) KeyFile
- func GetPaymentVKey(paymentKey bip32.XPrv) KeyFile
- func GetStakeExtendedSKey(stakeKey bip32.XPrv) KeyFile
- func GetStakeSKey(stakeKey bip32.XPrv) KeyFile
- func GetStakeVKey(stakeKey bip32.XPrv) KeyFile
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetExtendedPrivateKey ¶
func GetKeyFile ¶ added in v0.2.0
func NewMnemonic ¶
Types ¶
type KeyFile ¶ added in v0.2.0
type KeyFile struct { Type string `json:"type"` Description string `json:"description"` CborHex string `json:"cborHex"` }
func GetPaymentExtendedSKey ¶ added in v0.7.0
func GetPaymentSKey ¶ added in v0.2.0
func GetPaymentVKey ¶ added in v0.2.0
func GetStakeExtendedSKey ¶ added in v0.7.0
func GetStakeSKey ¶ added in v0.2.0
func GetStakeVKey ¶ added in v0.2.0
type Wallet ¶ added in v0.2.0
type Wallet struct { Mnemonic string `json:"mnemonic"` PaymentAddress string `json:"payment_address"` StakeAddress string `json:"stake_address"` PaymentVKey KeyFile `json:"payment_kvey"` PaymentSKey KeyFile `json:"payment_skey"` PaymentExtendedSKey KeyFile `json:"payment_extended_skey"` StakeVKey KeyFile `json:"stake_vkey"` StakeSKey KeyFile `json:"stake_skey"` StakeExtendedSKey KeyFile `json:"stake_extended_skey"` }
func NewDefaultWallet ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.