Versions in this module Expand all Collapse all v0 v0.0.6 May 13, 2024 v0.0.5 May 13, 2024 v0.0.4 Aug 31, 2023 v0.0.3 Aug 31, 2023 Changes in this version + func NewPbkdf2() *pbkdf2Wapper + func NewScryptWapper() *scryptWapper + type CipherParams struct + IV string + type Crypto struct + Cipher string + Ciphertext string + KDF string + MAC string + type KDFParams struct + C int + DKlen int + N int + P int + R int + Salt string + func NewKDFParams(salt string) KDFParams + type KDFType int + type Keystore struct + func NewDefaultKeystore() *Keystore + func NewKeystore(p *pbkdf2Wapper, s *scryptWapper) *Keystore + func (ks *Keystore) DecryptPrivateKey(encryptJson, passphrase string) (string, error) + func (ks *Keystore) EncryptPrivateKey(privateKey, passphrase []byte, t KDFType) (string, error) + func (ks *Keystore) GetDerivedKey(password []byte, params interface{}) ([]byte, error) + type KeystoreV3 struct + Address string + ID string + Version int + type Pbkdf2Params struct + Count int + DkLen int + Salt []byte + type ScryptParams struct + DkLen int + N int + P int + R int + Salt []byte