aries-cloudagent-python icon indicating copy to clipboard operation
aries-cloudagent-python copied to clipboard

Docs needed, predicates in `"/present-proof-2.0/records/<presentationExchangeId>/send-presentation"` examples

Open miroslav-inc opened this issue 1 year ago • 0 comments

I'm trying to sendPresentation for a request that has predicates, but I can't seem to construct valid sendPresentation request with predicates included. I can see that predicates in SendPresentation request only have

`public static final class IndyRequestedCredsRequestedPred {
    private String credId;
    private Integer timestamp;
}`

But in request I have some condition like age >= 20, I tried adding just same name from request (age for example) and setting credId to credential for which I want to sendPresentation but then I get error from Ursa

Error: Invalid structure. Caused by: UrsaCryptoError: Predicate is not satisfied. CommonInvalidStructure.

miroslav-inc avatar Jul 20 '23 08:07 miroslav-inc