package
2.0.1+incompatible
Repository: https://github.com/dipperin/dipperin-core.git
Documentation: pkg.go.dev
# Functions
AES CBC decryption.
AES CBC encryption.
calculate wallet cipher.
judging the legitimacy of derived paths.
judge the wallet password.
judge the incoming wallet path.
clear sensitive data.
Decrypt and verify wallet ciphertext data based on wallet ciphertext and derived encrypted key and mac key.
Encrypt wallet plaintext data based on wallet plaintext and derived encrypted key and mac key.
generating mnemonic.
GenerateSeed returns a cryptographically secure random seed that can be used as the input for the NewMaster function to generate a new master node.
Derived encrypted key and mac key based on password and KDF parameters.
Obtain account information based on the extended key.
Hash160 calculates the hash ripemd160(sha256(b)).
NewExtendedKey returns a new instance of an extended key with the given fields.
No description provided by the author
No description provided by the author
NewKeyFromString returns a new extended key instance from a base58-encoded extended key.
NewMaster creates a new master node for use in creating a hierarchical deterministic key chain.
No description provided by the author
determine if a file or directory exists.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
m / purpose' / coin_type' / account' / change / address_index.
No description provided by the author
No description provided by the author
2^31.
default kdf parameter.
512 bits.
128 bits.
256 bits.
No description provided by the author
use AES-128-CBC.
use AES-128-CBC.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
default kdf parameter.
default kdf parameter.
default kdf parameter.
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
No description provided by the author
ErrBadChecksum describes an error in which the checksum encoded with a serialized extended key does not match the calculated value.
ErrDeriveBeyondMaxDepth describes an error in which the caller has attempted to derive more than 255 keys from a root key.
ErrDeriveHardFromPublic describes an error in which the caller attempted to derive a hardened extended key from a public key.
ErrInvalidChild describes an error in which the child at a specific index is invalid due to the derived key falling outside of the valid range for secp256k1 private keys.
ErrInvalidKeyLen describes an error in which the provided serialized key is not the expected length.
ErrInvalidSeedLen describes an error in which the provided seed or seed length is not in the allowed range.
ErrNotPrivExtKey describes an error in which the caller attempted to extract a private key from a public extended key.
ErrUnusableSeed describes an error in which the provided seed is not usable due to the derived key falling outside of the valid range for secp256k1 private keys.
# Structs
define dipperin s own chain configurationCurrently, only the HD extended key ID is stored, which is used to populate the version field in the extended key when the master key is generated according to the seed.
encrypted keyData.
encryption parameters.
ExtendedKey houses all the information needed to support a hierarchical deterministic extended key.
No description provided by the author
key derivation algorithm parameters.
No description provided by the author
symmetric encryption algorithm parameters.
wallet cipher.
wallet file content.
No description provided by the author
No description provided by the author
wallet plaintext.