hyperledger / aries-framework-kotlin

aries-framework-kotlin
https://wiki.hyperledger.org/display/aries
Apache License 2.0
7 stars 6 forks source link

Getting error while creating a Proof #35

Open amutha-tg opened 1 week ago

amutha-tg commented 1 week ago

We are seeing this issue while creating a proof on receive message. Attached error logs here.

Proof request json: {"name":"Testing","version":"v1","nonce":"665426485822117709014251","requested_attributes":{"Dummy One":{"names":["Dummy Two"],"restrictions":[{"cred_def_id":"UgCAHEF9HscTD35NEMp9tm:3:CL:1187:1.1.0"}]}},"requested_predicates":{"Dummy One":{"name":"Dummy One","p_type":">=","p_value":50,"restrictions":[{"cred_def_id":"UgCAHEF9HscTD35NEMp9tm:3:CL:1187:1.1.0"}]}}}

Creating proof with requestedCredentials: {"requested_attributes":{"Dummy One":{"cred_id":"3d09a03e-b53f-48f7-89a4-1ba942bce071","revealed":true,"credentialInfo":{"referent":"3d09a03e-b53f-48f7-89a4-1ba942bce071","attrs":{},"schema_id":"UgCAHEF9HscTD35NEMp9tm:2:FirstResponder:1.1.0","cred_def_id":"UgCAHEF9HscTD35NEMp9tm:3:CL:1187:1.1.0"}}},"requested_predicates":{"Dummy One":{"cred_id":"3d09a03e-b53f-48f7-89a4-1ba942bce071","credentialInfo":{"referent":"3d09a03e-b53f-48f7-89a4-1ba942bce071","attrs":{},"schema_id":"UgCAHEF9HscTD35NEMp9tm:2:FirstResponder:1.1.0","cred_def_id":"UgCAHEF9HscTD35NEMp9tm:3:CL:1187:1.1.0"}}},"self_attested_attributes":{}}

Failed to dispatch message of type: did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/present-proof/1.0/request-presentation

failed to receive message: java.lang.Exception: Cannot create a proof using the provided credentials. anoncreds_uniffi.ErrorCode$InvalidState: Invalid state: Value by key 'dummyone' has invalid format

conanoc commented 4 days ago

I'm not sure what caused this error. Can I see how you issued the credential or created the offer?