key

package
v0.0.0-...-0cc983d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 5 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

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