Skip to content

How to use complex proof restrictions using wql #1255

Answered by TimoGlastra
sschulz-t asked this question in Q&A
Discussion options

You must be logged in to vote

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:

"attr1_referent": {
        "restrictions": [
          {
            "cred_def_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:3:CL:129:MEMBERSHIP_A"
          },
          {
            "cred_def_id": "yyyyyyyyyyyyyyyyyyyyyyyyyyy:3:CL:129:MEMBERSHIP_B"
          },
        ],
        "name": "last_name"
      },
}

@swcurran interesting to take into account for the AnonCreds Spe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sschulz-t
Comment options

Answer selected by TimoGlastra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants