account

package
v1.0.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyInfoFromPriKey

func GenerateKeyInfoFromPriKey(priKey, keyFormat string) (*types.KeyInfo, error)

func GenerateMnemonic

func GenerateMnemonic(walletDB datastore.WalletDB, mType hd.MnemonicType, passwordKey []byte) error

func GeneratePrivateKeyFromMnemonicIndex

func GeneratePrivateKeyFromMnemonicIndex(walletDB datastore.WalletDB, mnemonic string, index int64, passwordKey []byte) ([]key.Key, error)

func GetPrivateKey

func GetPrivateKey(walletDB datastore.WalletDB, addr string, passwordKey []byte) (key.Key, error)

func ImportMnemonic

func ImportMnemonic(walletDB datastore.WalletDB, mnemonic string, passwordKey []byte) error

func ImportPrivateKey

func ImportPrivateKey(walletDB datastore.WalletDB, priKey, keyFormat string, passwordKey []byte) error

func LoadMnemonic

func LoadMnemonic(walletDB datastore.WalletDB, passwordKey []byte) (string, error)

func LoadPrivateKeys

func LoadPrivateKeys(walletDB datastore.WalletDB, passwordKey []byte) ([]key.Key, error)

func UpdateMnemonic

func UpdateMnemonic(walletDB datastore.WalletDB, oldPasswordKey, newPasswordKey []byte) error

func UpdatePrivateKey

func UpdatePrivateKey(walletDB datastore.WalletDB, oldPasswordKey, newPasswordKey []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL