Open wadeking98 opened 1 year ago
I am not familiar with the "request template" concept (although it seems quite interesting!). Are you sure there is not any issue in that side (i.e. Bifold or its Mobile Verifier module) when parsing the restrictions?
For the moment I did some quick verification in the way AFJ is parsing restrictions from JSON and seems fine. The same for anoncreds-rs (which is actually the module throwing the error) and its NodeJS wrapper (I didn't test in React Native though) using some attributes with spaces on them. 🤔
@wadeking98 were you able to solve this issue? Based on the comments from @genaris it seems spaces are allowed?
When sending a proof request in bifold If the request template has an attribute restriction with a space in it such as
'attr::Given Name::value': 'Test'
then the verifier will encounter an error. Additionally, if the attribute restriction doesn't have a space in it, but any of the requested attributes do have a space then the verifer will encounter the same error. If there is no space in any of the requested attributes or attribute restrictions then the proof request works fine. Here is an example template which generates the error in bifold:After the holder sends the request successfully, on the verifier side AFJ responds with an error:
And in the logs:
The rust syntax in the error message seems to suggest that indy-vdr is throwing the error but I'm not sure if this is an issue in Indy-VDR or if it's some kind of URL-encoding issue in AFJ.