crypto

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT 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

Types

type PrivKey

type PrivKey = types.PrivKey

type PubKey

type PubKey = secp256k1.PubKey

Jump to

Keyboard shortcuts

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