How to use complex proof restrictions using wql #1255
-
Is there a way to request a proof that is using a "complex" restrictions for an attribute? I have a use case where I want to send complex queries using the indy wql (https://github.com/hyperledger/indy-sdk/tree/main/docs/design/011-wallet-query-language). For example I want a proof that the person has either membership a or membership b in one proof request.
How can I do this request with this framework? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sschulz-t, I never knew this syntax was supported, and I've never seen anyone use it. I did some small modifications in AFJ to disable the current validation of requiring For now, as this will fail validation in AFJ you can use the following syntax:
@swcurran interesting to take into account for the AnonCreds Spec. Apparently the value for the restrictions can be complex WQL queries. Both ACA-Py and AFJ require it to be a string, but technically the Indy SDK supports this. |
Beta Was this translation helpful? Give feedback.
Hi @sschulz-t,
I never knew this syntax was supported, and I've never seen anyone use it. I did some small modifications in AFJ to disable the current validation of requiring
cred_def_id
to be a string, and to my surprise the$in
statement works.For now, as this will fail validation in AFJ you can use the following syntax:
@swcurran interesting to take into account for the AnonCreds Spe…