@inrupt/solid-client-vc / verify
Module: verify#
Functions#
isValidVc#
▸ isValidVc(vc
, options?
): Promise
<{ checks
: string
[] ; errors
: string
[] ; warnings
: string
[] }>
Verify that a VC is valid, i.e. :
its signature matches its issuer’s key
it has not been revoked
it isn’t expired These verifications are done server-side by a Verification Service, either discovered from the VC Issuer or manually provided.
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
The VC to verify |
|
|
Additional options - |
Returns#
Promise
<{ checks
: string
[] ; errors
: string
[] ; warnings
: string
[] }>
a JSON-shaped validation report structured accoring to the VC Verifier API.
Since
0.3.0
Defined in#
src/verify/verify.ts:91
isValidVerifiablePresentation#
▸ isValidVerifiablePresentation(verificationEndpoint
, verifiablePresentation
, options?
): Promise
<{ checks
: string
[] ; errors
: string
[] ; warnings
: string
[] }>
Verify that a VP is valid and content has not ben tampered with.
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
The verification endpoint |
|
|
The VP to verify |
|
|
Additional options - |
Returns#
Promise
<{ checks
: string
[] ; errors
: string
[] ; warnings
: string
[] }>
a JSON-shaped validation report structured accoring to the VP Verifier API.
Since
Defined in#
src/verify/verify.ts:192