From d5c7a6056afdc8c3364b1774b5d2bc4a74b028a6 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 9 Oct 2018 11:05:41 +0200 Subject: cmd/clef: encrypt the master seed on disk (#17704) * cmd/clef: encrypt master seed of clef Signed-off-by: YaoZengzeng * 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 --- signer/core/api.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'signer/core') diff --git a/signer/core/api.go b/signer/core/api.go index c380fe977..2b96cdb5f 100644 --- a/signer/core/api.go +++ b/signer/core/api.go @@ -197,6 +197,12 @@ type ( Message struct { Text string `json:"text"` } + PasswordRequest struct { + Prompt string `json:"prompt"` + } + PasswordResponse struct { + Password string `json:"password"` + } StartupInfo struct { Info map[string]interface{} `json:"info"` } -- cgit