Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDecrypt = errors.New("could not decrypt key with given passphrase")
)
Errors
Functions ¶
Types ¶
type KdfParams ¶
type KdfParams struct {
DkLen int `json:"dklen"` // DK length
Salt string `json:"salt"` // salt string
}
KdfParams .
type Provider ¶
type Provider interface {
Read(data []byte, password string) (*Key, error)
Write(key *Key, password string, attrs map[string]interface{}) ([]byte, error)
KdfTypeName() []string
}
Provider keystore serializer provider
type Web3KeyStore ¶
type Web3KeyStore struct {
}
Web3KeyStore scrypt keystore keystore
func (*Web3KeyStore) KdfTypeName ¶
func (keystore *Web3KeyStore) KdfTypeName() []string
KdfTypeName get the keystore keystore's kdf alogirthm type
Click to show internal directories.
Click to hide internal directories.