Verify
Verify
Verifies a specified string.
Method: verify
Input parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| message or hash | String | Yes | Message or hash to be verified. |
| publicKey | String | Yes | Public Key as Hex String. |
| signature | String | Yes | Signature as Hex String. |
Errors:
| Error | Description |
|---|---|
| RPC_INVALID_PARAMS | Invalid Parameters are used. |
| RPC_INTERNAL_ERROR | An unknown error occurred in the node. Please check the node log for details. |
Output:
- a JSON object with "OK" or "FAIL" string in result field.
Example:
{
"result": "OK",
"error": null,
"id": null
}