POST /signature/verify
Verify a digital signature using the public key and original data.
{{baseUrl}}/signature/verify
Headers
Header | Type | Description |
---|---|---|
x-api-key | string | The API key required for authentication. |
Request Body
Parameter | Type | Description |
---|---|---|
publicKey | string | The public key used to verify the signature. |
data | string | The original data that was signed. |
signature | string | The digital signature to verify. |
Sample Request Body:
{
"publicKey": "047f422ec4c08c97af19867779b6189559c01a5430f579acee1ac6063f3ee6cc541d4719b555148aaac9f7137865be76a3bf4dc16acb11d2c336da79d9bf88975f",
"data": "Hello, world!",
"signature": "304502201a98bbf689941771477cf111d8ed436f1cd66ec52ff84178a1c5e21b27acb8d20221008718ef15bd46d34f60f224d9bfa69edd88abf9ee68b097b02dc8a837086dee51"
}
Click Send
and wait for the response.
Response (Success - 200)
Parameter | Type | Description |
---|---|---|
isValid | boolean | Indicates if the signature is valid (true) or not (false). |
Sample Response Body:
{
"isValid": true
}
Response (Server Error - 500)
Parameter | Type | Description |
---|---|---|
error | string | Describes the error that occurred. |
Sample Response Body:
{
"error": "Server error"
}