Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrivatekeyFromKeystore ¶
GetPrivatekeyFromKeystore decrypts the encrypted private key based on the user's password and necessary parameters.
func MakeKeyStore ¶
MakeKeyStore encrypts the incoming password and private key to generate a json file in the program directory and returns the filename.
Types ¶
type CipherParams ¶
type CipherParams struct { // aes-128-ctr initialization vector Iv []byte }
CipherParams is used to store the necessary parameters required by the aes-128-ctr encryption algorithm.
type JSON ¶
type JSON struct { Kdfparam *KdfParam `json:"kdfparam"` CipherParams CipherParams `json:"cipher_params"` Cipher string `json:"cipher"` CipherText []byte `json:"cipher_text"` Kdf string `json:"kdf"` Mac []byte `json:"mac"` Version string `json:"version"` Project string `json:"project"` }
JSON is used for json encoding storage and local.
func CreateKeyStore ¶
CreateKeyStore create a keystore structure
Click to show internal directories.
Click to hide internal directories.