How to read the signature fields on a ClearRun verdict

Hosted verdicts carry signature, signatureKeyId and signatureAlg. They show ClearRun signed the verdict. Mock verdicts have all three set to null.

Last updated

The fields

The fields
FieldHostedMock
signatureA signature stringnull
signatureKeyIdId of the signing keynull
signatureAlged25519null

Can I check it?

Not on its own. It covers data that is not in the public response. To check a score yourself, check the receipt. See Why can't I check verdict.signature myself?

A quick test in code

const isSigned = typeof verdict.signature === 'string' && verdict.signature.length > 0;

ClearRun never returns an unsigned hosted verdict. If signing fails, the call returns 500 UNSIGNED_VERDICT.