Verifies one proof on a document. Never throws for a wrong proof: the answer is ok: false and the check that failed.
ok: false
the secured document
allowedCryptosuites, expectedPurpose, expectedChallenge, expectedDomain, now, clockSkewS, maxAgeS, createdRequired, chain and onlyProof
allowedCryptosuites
expectedPurpose
expectedChallenge
expectedDomain
now
clockSkewS
maxAgeS
createdRequired
chain
onlyProof
{ ok, checks, jwk, ... }
Verifies one proof on a document. Never throws for a wrong proof: the answer is
ok: falseand the check that failed.