Versions in this module Expand all Collapse all v1 v1.0.0 Jun 13, 2021 Changes in this version + const LightScryptN + const LightScryptP + const StandardScryptN + const StandardScryptP + var ErrDecrypt = errors.New("could not decrypt key with given password") + func DecryptDataV3(cryptoJson CryptoJSON, auth string) ([]byte, error) + func EncryptKey(key *Key, auth string, scryptN, scryptP int) ([]byte, error) + func Keccak256(data ...[]byte) []byte + type CryptoJSON struct + Cipher string + CipherParams cipherparamsJSON + CipherText string + KDF string + KDFParams map[string]interface{} + MAC string + func EncryptDataV3(data, auth []byte, scryptN, scryptP int) (CryptoJSON, error) + type Key struct + Addr string + Id uuid.UUID + Path string + PrivateKey []byte + func DecryptKey(keyjson []byte, auth string) (*Key, error) + func (k *Key) MarshalJSON() (j []byte, err error) + func (k *Key) UnmarshalJSON(j []byte) (err error)