Some policies may require a parameter or argument for execution. The parameter is indicated in the policy list output, together with the expected data type.
Using A Parameterized Policy
Please refer to the SSI-Kit setup section to exectute the command successfully.
Let's verify a credential using the parameterless SignaturePolicy and ChallengePolicy which taks a paramter.
-p, --policy: Verification policy. Can be specified multiple times. By default, SignaturePolicy is used. To specify a policy argument (if required), use the format PolicyName='{"myParam": "myValue", ...}', to specify the JSON object directly, or PolicyName=path/to/arg.json, to read the argument from a JSON file.
The Challange Policy
It checks that the challenge of the credential is one of the challenges given in the ChallengePolicyArg argument.
Please refer to the SSI-Kit setup section to serve the API.
Using the /v1/verify enpoint in the Auditor API to verify a credential