accounts: omit if the KDFParam field has an empty value

This commit is contained in:
htkao 2019-06-02 17:27:17 -07:00
parent 0bea9a6447
commit 7def2d5ce6

View file

@ -79,13 +79,13 @@ type encryptedKeyJSONV1 struct {
}
type kdfparamsJSON struct {
Salt string `json:"salt"`
Prf string `json:"prf"`
DKLen int `json:"dklen"`
C int `json:"c"`
N int `json:"n"`
P int `json:"p"`
R int `json:"r"`
Salt string `json:"salt,omitempty"`
Prf string `json:"prf,omitempty"`
DKLen int `json:"dklen,omitempty"`
C int `json:"c,omitempty"`
N int `json:"n,omitempty"`
P int `json:"p,omitempty"`
R int `json:"r,omitempty"`
}
type CryptoJSON struct {