aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/keystore/key.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-10-09 17:05:41 +0800
committerGitHub <noreply@github.com>2018-10-09 17:05:41 +0800
commitd5c7a6056afdc8c3364b1774b5d2bc4a74b028a6 (patch)
tree3d29cc462f535517d76ff454087d139ea577393d /accounts/keystore/key.go
parentff5538ad4c20677148ca43e1786fe67898b59425 (diff)
downloadgo-tangerine-d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6.tar
go-tangerine-d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6.tar.gz
go-tangerine-d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6.tar.bz2
go-tangerine-d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6.tar.lz
go-tangerine-d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6.tar.xz
go-tangerine-d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6.tar.zst
go-tangerine-d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6.zip
cmd/clef: encrypt the master seed on disk (#17704)
* cmd/clef: encrypt master seed of clef Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn> * keystore: refactor for external use of encryption * clef: utilize keystore encryption, check flags correctly * clef: validate master password * clef: add json wrapping around encrypted master seed
Diffstat (limited to 'accounts/keystore/key.go')
-rw-r--r--accounts/keystore/key.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go
index 9e3e4856c..0564751c4 100644
--- a/accounts/keystore/key.go
+++ b/accounts/keystore/key.go
@@ -66,19 +66,19 @@ type plainKeyJSON struct {
type encryptedKeyJSONV3 struct {
Address string `json:"address"`
- Crypto cryptoJSON `json:"crypto"`
+ Crypto CryptoJSON `json:"crypto"`
Id string `json:"id"`
Version int `json:"version"`
}
type encryptedKeyJSONV1 struct {
Address string `json:"address"`
- Crypto cryptoJSON `json:"crypto"`
+ Crypto CryptoJSON `json:"crypto"`
Id string `json:"id"`
Version string `json:"version"`
}
-type cryptoJSON struct {
+type CryptoJSON struct {
Cipher string `json:"cipher"`
CipherText string `json:"ciphertext"`
CipherParams cipherparamsJSON `json:"cipherparams"`