Re: #1290: Add a lotus wallet verify API and CLI command

- The command takes an address, message, and signature, and returns true if the sig is valid
This commit is contained in:
Aayush Rajasekaran
2020-02-28 15:56:15 -08:00
parent f6bda96d5a
commit fe8db295e7
6 changed files with 82 additions and 1 deletions
+14
View File
@@ -28,6 +28,20 @@ const (
metadataTraceConetxt = "traceContext"
)
// custom CLI error
type ErrCmdFailed struct {
msg string
}
func (e *ErrCmdFailed) Error() string {
return e.msg
}
func NewCliError(s string) error {
return &ErrCmdFailed{s}
}
// ApiConnector returns API instance
type ApiConnector func() api.FullNode