package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev

# Functions

DecryptDataV3 ...
DecryptKey decrypts a key from a json blob, returning the private key itself.
EncryptDataV3 encrypts the data given as 'data' with the password 'auth'.
EncryptKey encrypts a key using the specified scrypt parameters into a json blob that can be decrypted later on.
NewKeyForDirectICAP generates a key whose address fits into < 155 bits so it can fit into the Direct ICAP spec.
NewKeyStore creates a keystore for the given directory.
NewPlaintextKeyStore creates a keystore for the given directory.
StoreKey generates a key, encrypts with 'auth' and stores in the given directory.

# Constants

KeyStoreScheme is the protocol scheme prefixing account and wallet URLs.
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.
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

ErrLocked ...
ErrLocked ...
ErrLocked ...
KeyStoreType is the reflect type of a keystore backend.

# Structs

AmbiguousAddrError is returned when attempting to unlock an address for which more than one file exists.
CryptoJSON ...
Key struct represents the account Key.
KeyStore manages a key storage directory on disk.