OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0604f8
)
Fix mnemonic resp format (#1372)
author
HAOYUatHZ
<37070449+HAOYUatHZ@users.noreply.github.com>
Mon, 1 Oct 2018 11:52:12 +0000
(19:52 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Mon, 1 Oct 2018 11:52:12 +0000
(19:52 +0800)
api/hsm.go
patch
|
blob
|
history
diff --git
a/api/hsm.go
b/api/hsm.go
index
ebba716
..
fead0b3
100644
(file)
--- a/
api/hsm.go
+++ b/
api/hsm.go
@@
-14,13
+14,13
@@
type createKeyResp struct {
Alias string `json:"alias"`
XPub chainkd.XPub `json:"xpub"`
File string `json:"file"`
- Mnemonic string `json:"mnemonic"`
+ Mnemonic string `json:"mnemonic
,omitempty
"`
}
func (a *API) pseudohsmCreateKey(ctx context.Context, in struct {
Alias string `json:"alias"`
Password string `json:"password"`
- Mnemonic string `json:"
n
nemonic"`
+ Mnemonic string `json:"
m
nemonic"`
Language string `json:"language"`
}) Response {
if in.Language == "" {