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

Define predicate epoch date in Proof Request that checks expiration

Open abramis opened this issue 3 years ago • 0 comments

Hello, i execute a present-proof/send-request from Aca-Py v.0.7.3. Without predicates or with predicate checking version (small number ex. 1,2,3), works fine, and credential verified successfully. But with epoch date that check on predicate, not error on aca-py but state=request sent. On terminal that runs holder agent found the error on image. But this value that say, dont have it on this credential. Attribute "expires"=1653471164590. Aca py not supporting this? Dont want to do with 2022-06-15-->20220615 way that found cause need to convert epoch value (that having now) from wallet to completed ISOstring value again to display on frontend. So this solution that recommend, not an option for me. Proof request body: { "connection_id": "a5c58a38-7f13-4179-94ca-aead5f7bdc7b", "proof_request": { "name": "proof_name", "version": "1.0", "requested_attributes": { "attr1": { "name": "sortDate", "restrictions": [ { "cred_def_id": "5nUsmP19YdpZvYHVDcAta5:3:CL:600:Diploma" } ] } }, "requested_predicates": { "pred_expires": { "name": "expires", "p_type": ">=", "p_value": 1655300351122, "restrictions": [ { "cred_def_id": "5nUsmP19YdpZvYHVDcAta5:3:CL:600:Diploma" } ] } } } }

proof expire error

abramis avatar Jun 15 '22 14:06 abramis