Skip to main content
POST
/
v1
/
signature
/
verify
Verify Signature
curl --request POST \
  --url https://api.example.com/v1/signature/verify \
  --header 'Content-Type: application/json' \
  --data '
{
  "hash": "<string>",
  "signature": "<string>",
  "publicKey": "<string>",
  "algorithm": "<string>"
}
'
{
  "valid": true,
  "errorMessage": "<string>"
}

Verify Signature

Verify that a signature is valid for a given hash and public key.

Request

hash
string
required
Original hash that was signed
signature
string
required
Signature to verify
publicKey
string
required
Public key in hex format
algorithm
string
Signing algorithm (default: secp256k1)

Response

valid
boolean
Whether the signature is valid
errorMessage
string
Error message if verification failed

Example

curl -X POST https://api.axonvault.io/v1/signature/verify \
  -H "X-Access-Key: ak_live_abc123" \
  -H "X-Signature: 5d41402abc4b2a76b9719d911017c592" \
  -H "X-Timestamp: 2024-01-15T10:30:00Z" \
  -H "Content-Type: application/json" \
  -d '{
    "hash": "0xabc123def456789...",
    "signature": "0x1234567890abcdef...",
    "publicKey": "0x04abc123...",
    "algorithm": "secp256k1"
  }'

Response Example

{
  "valid": true,
  "errorMessage": ""
}

Errors

Error TypeStatusDescription
invalid_request400Missing required fields
invalid_format400Invalid hex format