Versions in this module Expand all Collapse all v1 v1.0.0 Sep 27, 2023 v0 v0.5.0 Sep 27, 2023 v0.4.0 Sep 27, 2023 v0.3.0 Sep 24, 2023 Changes in this version + type CryptoParams struct + Cipher string + CipherParams map[string]string + Ciphertext string + KDF string + KDFParams map[string]interface{} + MAC string + type KeyDerivator interface + DeriveKey func(password []byte) ([]byte, error) + Encode func() map[string]interface{} + Name func() string + type PBDKDF2KeyDerivator struct + DkLen int + Iterations int + Salt []byte + func NewPBDKDF2KeyDerivator(iterations int, salt []byte, dkLen int) *PBDKDF2KeyDerivator + func (k *PBDKDF2KeyDerivator) DeriveKey(password []byte) ([]byte, error) + func (k *PBDKDF2KeyDerivator) Encode() map[string]interface{} + func (k *PBDKDF2KeyDerivator) Name() string + type ScryptKeyDerivator struct + DkLen int + N int + P int + R int + Salt []byte + func NewScryptKeyDerivator(dkLen, n, r, p int, salt []byte) *ScryptKeyDerivator + func (k *ScryptKeyDerivator) DeriveKey(password []byte) ([]byte, error) + func (k *ScryptKeyDerivator) Encode() map[string]interface{} + func (k *ScryptKeyDerivator) Name() string + type SecretWallet struct + Credentials string + Derivator KeyDerivator + ID []byte + IV []byte + Password []byte + func DecodeSecretWallet(encodedWallet string, password string) (*SecretWallet, error) + func NewSecretWallet(credentials string, password string, scryptN int, p int) (*SecretWallet, error) + func (w *SecretWallet) ToBase68() (string, error) + func (w *SecretWallet) ToJSON() (string, error) + type WalletData struct + Crypto CryptoParams + ID string + Version int + func (w *WalletData) Validate() error