m.Handle("/list-keys", jsonHandler(a.pseudohsmListKeys))
m.Handle("/delete-key", jsonHandler(a.pseudohsmDeleteKey))
m.Handle("/reset-key-password", jsonHandler(a.pseudohsmResetPassword))
-
- m.Handle("/sign-message", jsonHandler(a.pseudohsmSignMsg))
- m.Handle("/verify-message", jsonHandler(a.pseudohsmVerifyMsg))
+ m.Handle("/sign-message", jsonHandler(a.signMessage))
m.Handle("/build-transaction", jsonHandler(a.build))
m.Handle("/sign-transaction", jsonHandler(a.pseudohsmSignTemplates))
m.Handle("/get-work", jsonHandler(a.getWork))
m.Handle("/submit-work", jsonHandler(a.submitWork))
+ m.Handle("/verify-message", jsonHandler(a.verifyMessage))
m.Handle("/gas-rate", jsonHandler(a.gasRate))
m.Handle("/net-info", jsonHandler(a.getNetInfo))
Signature string `json:"signature"`
}
-func (a *API) pseudohsmSignMsg(ctx context.Context, ins struct {
+func (a *API) signMessage(ctx context.Context, ins struct {
RootXPub chainkd.XPub `json:"root_xpub"`
Message []byte `json:"message"`
Password string `json:"password"`
VerifyResult bool `json:" result"`
}
-func (a *API) pseudohsmVerifyMsg(ctx context.Context, ins struct {
+func (a *API) verifyMessage(ctx context.Context, ins struct {
RootXPub chainkd.XPub `json:"root_xpub"`
Message []byte `json:"message"`
Signature []byte `json:"signature"`