package
1.7.0
Repository: https://github.com/blocktree/openwallet.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.
GenerateSeed returns a cryptographically secure random seed that can be used as the input for the NewMaster function to generate a new master node.
GetExtendSeed 获得某个币种的扩展种子.
keyFileName implements the naming convention for keyfiles: wallet--<alias>-<rootId>.
NewHDKey 通过userkey,私钥种子,根私钥标识符,账户路径,创建HDKey.
NewHDKeystore 实例化HDKeystore.
StoreHDKey 创建HDKey.
StoreHDKey 创建HDKey.

# Constants

LightScryptN is the N parameter of Scrypt encryption algorithm, using 4MB memory and taking approximately 100ms CPU time on a modern processor.
LightScryptP is the P parameter of Scrypt encryption algorithm, using 4MB memory and taking approximately 100ms CPU time on a modern processor.
512 bits.
128 bits.
The hierarchy described by BIP0043 is: m/<purpose>'/* This is further extended by BIP0044 to: m/44'/<coin type>'/<account>' BIP0044,m/44'/openwallet coin type is 88': m/44'/88'.
种子长度.
StandardScryptN is the N parameter of Scrypt encryption algorithm, using 256MB memory and taking approximately 1s CPU time on a modern processor.
StandardScryptP is the P parameter of Scrypt encryption algorithm, using 256MB memory and taking approximately 1s CPU time on a modern processor.

# Variables

ErrDecrypt 机密出错.
Derived路径错误.
错误的HDPath.
ErrInvalidSeedLen describes an error in which the provided seed or seed length is not in the allowed range.
ErrLocked = accounts.NewAuthNeededError("password or unlock").
KeyID首字节的标识.

# Structs

HDKey 分层确定性密钥,基于BIP32模型创建的账户模型.
HDKeystore HDKey的存粗工具类.