Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var New = func(savePath string) *KeyStore { return &KeyStore{ savePath: savePath, } }
Functions ¶
This section is empty.
Types ¶
type AccountJson ¶
type AccountJson struct { Salt KeyProtectSalt `json:"salt"` Addr account.MetaAddr `json:"addr"` CipherText []byte `json:"cipher_text"` Version int32 `json:"version"` }
type KeyProtectSalt ¶
type KeyProtectSalt [16]byte
func (KeyProtectSalt) MarshalText ¶
func (kp KeyProtectSalt) MarshalText() ([]byte, error)
func (*KeyProtectSalt) UnmarshalText ¶
func (kp *KeyProtectSalt) UnmarshalText(text []byte) error
type KeyStore ¶
type KeyStore struct {
// contains filtered or unexported fields
}
func (*KeyStore) GetAccount ¶
func (*KeyStore) SaveByNewPassword ¶
func (*KeyStore) SetAccount ¶
Click to show internal directories.
Click to hide internal directories.