Documentation
¶
Index ¶
- Constants
- func AesDecryptCBC(cipherText []byte, key []byte) ([]byte, error)
- func AesDecryptCTR(data, key, iv []byte) ([]byte, error)
- func AesDecryptECB(cipherText, key []byte) ([]byte, error)
- func AesEncryptCBC(plainText []byte, key []byte) ([]byte, error)
- func AesEncryptCTR(data, key, iv []byte) ([]byte, error)
- func AesEncryptECB(plainText, key []byte) ([]byte, error)
- func DecryptText(cipherText, password []byte) ([]byte, error)
- func EncryptText(clearText, password []byte) ([]byte, error)
- func GenerateMnemonic(wordNumber int) (string, error)
- func IsValidMnemonic(mn string) bool
- func PerformRecover(formattedShares []string) (string, error)
- func PerformSplit(mn string) ([]string, error)
- func ReadFromGethKeyStore(ksString string, password string) (string, error)
- func ReadFromKeyStore(ksString, password string, isMn bool) (string, error)
- func RsaDecryptWithPriv(priv []byte, cipherText []byte) ([]byte, error)
- func RsaEncryptWithPub(pub []byte, plainText []byte) ([]byte, error)
- func SSSCombine(shares [][]byte) ([]byte, error)
- func SSSSplit(data []byte, n, t int) ([][]byte, error)
- func WriteToKeyStore(name, text, password string, isMn bool) (string, error)
- type ActiveAccount
- type CryptoStruct
- type GethKeyStore
- type KeyStore
Constants ¶
View Source
const ( MnWordNumber12 = 12 MnWordNumber24 = 24 )
View Source
const ( )
Variables ¶
This section is empty.
Functions ¶
func AesDecryptCTR ¶
func AesDecryptECB ¶
func AesEncryptCTR ¶
func AesEncryptECB ¶
func DecryptText ¶
func EncryptText ¶
func GenerateMnemonic ¶
func IsValidMnemonic ¶
func PerformRecover ¶
func PerformSplit ¶
func ReadFromGethKeyStore ¶
func SSSCombine ¶
Types ¶
type ActiveAccount ¶
type CryptoStruct ¶
type CryptoStruct struct {
Cipher string `json:"cipher"`
Cipherparams struct {
Iv string `json:"iv"`
} `json:"cipherparams"`
Ciphertext string `json:"ciphertext"`
Kdf string `json:"kdf"`
Kdfparams struct {
Dklen int `json:"dklen"`
N int `json:"n"`
P int `json:"p"`
R int `json:"r"`
Salt string `json:"salt"`
} `json:"kdfparams"`
Mac string `json:"mac"`
}
type GethKeyStore ¶
type GethKeyStore struct {
Address string `json:"address"`
Crypto CryptoStruct `json:"crypto"`
Id string `json:"id"`
Version int `json:"version"`
}
type KeyStore ¶
type KeyStore struct {
ActiveAccounts []ActiveAccount `json:"activeAccounts"`
Crypto CryptoStruct `json:"crypto"`
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Version int `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.