Verify Single Element
Note: in most cases, you want to verify the whole user-provided Presentation, see Verify Presentation
This is an lower level function for working with JSON types:
val dataToVerify: JsonElement // provide data to verify
val policyRequest = PolicyRequest(JwtSignaturePolicy())
val context = mapOf() // optionally provide some context for specific Verification Policies (e.g. presentationDefinition, challenge)
val result: Result<Any> = policyRequest.runPolicyRequest(dataToVerify, context) // result type depends on Policy