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:
+14
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user