package
1.1.1
Repository: https://github.com/bytomdao/bytom.git
Documentation: pkg.go.dev

# Functions

DecryptKey decrypts a key from a json blob, returning the private key itself.
EncryptKey encrypts a key using the specified scrypt parameters into a json blob that can be decrypted later on.
New method for HSM struct.

# Constants

EntropyLength random entropy length to generate mnemonics.
LightScryptN n,r,p = 2^12, 8, 6 uses 4MB memory and approx 100ms CPU time on a modern CPU.
LightScryptP fit above.
StandardScryptN n,r,p = 2^18, 8, 1 uses 256MB memory and approx 1s CPU time on a modern CPU.
StandardScryptP fit above.

# Variables

pre-define errors for supporting bytom errorFormatter.
pre-define errors for supporting bytom errorFormatter.
pre-define errors for supporting bytom errorFormatter.
pre-define errors for supporting bytom errorFormatter.
pre-define errors for supporting bytom errorFormatter.

# Structs

AmbiguousKeyError is returned when attempting to unlock an XPub for which more than one file exists.
HSM type for storing pubkey and privatekey.
KeyImage is the struct for hold export key data.
XKey struct type for keystore file.
XPub type for pubkey for anyone can see.