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 { type kdfparamsJSON struct {
Salt string `json:"salt"` Salt string `json:"salt,omitempty"`
Prf string `json:"prf"` Prf string `json:"prf,omitempty"`
DKLen int `json:"dklen"` DKLen int `json:"dklen,omitempty"`
C int `json:"c"` C int `json:"c,omitempty"`
N int `json:"n"` N int `json:"n,omitempty"`
P int `json:"p"` P int `json:"p,omitempty"`
R int `json:"r"` R int `json:"r,omitempty"`
} }
type CryptoJSON struct { type CryptoJSON struct {