Closed guillesanz21 closed 2 years ago
I think you want "LE" in your predicate (i.e. the birthdate is "LE" some date to prove that the age is "GE" some age).
Oh I see, I knew the error I had was going to be a silly mistake...
However, a question arises for me... if the predicate condition is not met, doesn't the verifier have a way to be notified about it? Because in my case, the verifier wasn't getting any response.
If the holder doesn't have any credentials they can present (which is the case here, since there are no credentials that satisfy the predicate restriction) all the holder can do is send a problem report (which basically cancels the request)
I'n not sure any of the mobile wallets implement this right now, but since you're using a bunch of aca-py agents you can call the /present-proof/problem-report
endpoint (I think that's it) on the holder agent
Ok, I think I understand now.
Thank you! I am going to close the issue then.
When I use ZKP in the credential presentation request by the verifier, it results in an error in the presentation in the holder. However, if I do not include ZKP predicates, the submission is sent and verified correctly.
Environment
I have a scenario deployed in docker (with docker-compose) with several agents (frameworks and controllers). AENA (ports 8035-8036) is the holder and FNMT (ports 8045-8046) acts as issuer and verifier simultaneously.
Regarding the frameworks, I am using the public image:
bcgovimages/aries-cloudagent
, versionpy36-1.16-1-1_0.7.2
.I am using AIP 1.0. I am not using revocation (the credential is issued without revocation). I am using a locally deployed VON network.
Let's start from a point where:
Request
The request I am using is:
/present-proof/send-request
.The request's body is the following one:
Note: The response does not contain any errors.
Logs
There are no errors printed in the terminal.
No webhook is sent.
The only error that is shown is the one specified in the "log" file (the file I specified to store logs) of the AENA agent, and it is the following:
And the log of this request by the FNMT agent does not show any error, only the following:
Framework configuration
FNMT framework configuration (the configuration of the holder's framework is similar, but with ACAPY_WALLET_LOCAL_DID set to true):
AND
aca-py start -it http '0.0.0.0' '8045' -ot http --admin '0.0.0.0' '8046'"