key

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHDPath

func CreateHDPath(account uint32, index uint32) string

CreateHDPath returns BIP 44 object from account and index parameters.

func CreateMnemonic

func CreateMnemonic() (string, error)

CreateMnemonic - create new mnemonic

func DerivePrivKeyBz

func DerivePrivKeyBz(mnemonic string, hdPath string) ([]byte, error)

DerivePrivKeyBz - derive private key bytes

func PrivKeyGen

func PrivKeyGen(bz []byte) (types.PrivKey, error)

PrivKeyGen is the default PrivKeyGen function in the keybase. For now, it only supports Secp256k1

func PrivKeyGenByMnemonic added in v1.0.1

func PrivKeyGenByMnemonic(mnemonic string, hdPath string) (rst types.PrivKey, err error)

PrivKeyGen

Types

type PrivKey

type PrivKey = types.PrivKey

PrivKey - wrapper to expose interface

Jump to

Keyboard shortcuts

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