}) error {
return a.hsm.ResetPassword(x.XPub, x.OldPassword, x.NewPassword)
}
-
-func (a *BlockchainReactor) pseudohsmUpdateAlias(ctx context.Context, x struct {
- Password string
- NewAlias string
- XPub chainkd.XPub `json:"xpubs"`
-}) error {
- return a.hsm.UpdateAlias(x.XPub, x.Password, x.NewAlias)
-}
"github.com/bytom/blockchain/rpc"
ctypes "github.com/bytom/blockchain/rpc/types"
"github.com/bytom/blockchain/txfeed"
- "github.com/bytom/protocol/bc"
"github.com/bytom/encoding/json"
"github.com/bytom/errors"
"github.com/bytom/mining/cpuminer"
"github.com/bytom/net/http/httpjson"
"github.com/bytom/p2p"
"github.com/bytom/protocol"
+ "github.com/bytom/protocol/bc"
"github.com/bytom/protocol/bc/legacy"
"github.com/bytom/types"
)
m.Handle("/delete-key", jsonHandler(bcr.pseudohsmDeleteKey))
m.Handle("/sign-transactions", jsonHandler(bcr.pseudohsmSignTemplates))
m.Handle("/reset-password", jsonHandler(bcr.pseudohsmResetPassword))
- m.Handle("/update-alias", jsonHandler(bcr.pseudohsmUpdateAlias))
m.Handle("/net-info", jsonHandler(bcr.getNetInfo))
m.Handle("/get-best-block-hash", jsonHandler(bcr.getBestBlockHash))