Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryptor ¶
type Encryptor interface {
// Name() provides the name of the encryptor
Name() string
// Version() provides the version of the encryptor
Version() uint
// Encrypt encrypts a byte array with its encryption mechanism and key
Encrypt(data []byte, key string) (map[string]interface{}, error)
// Decrypt encrypts a byte array with its encryption mechanism and key
Decrypt(data map[string]interface{}, key string) ([]byte, error)
}
Encryptor is the interface for encrypting and decrypting sensitive information in wallets.
Click to show internal directories.
Click to hide internal directories.