Closed juvebogdan closed 3 years ago
Hello,
I am using OSMA mobile app. I got it to work until present proof part where this function ListCredentialsForProofRequestAsync returns empty list even though I have a credential.
This is how my credential looks like:
[{"CredentialDefinitionId":"V9dPQBraK4Fv9Z9rtNAhxg:3:CL:58807:faber.agent.degree_schema","CredentialAttributesValues":[{"name":"name","value":"Alice Smith"},{"name":"date","value":"2018-05-28"},{"name":"degree","value":"Maths"},{"name":"age","value":"24"},{"name":"timestamp","value":"1616664806"}],"OfferJson":"{\"schema_id\": \"V9dPQBraK4Fv9Z9rtNAhxg:2:degree schema:70.99.67\", \"cred_def_id\": \"V9dPQBraK4Fv9Z9rtNAhxg:3:CL:58807:faber.agent.degree_schema\", \"key_correctness_proof\": {\"c\": \"54264342220490677177830028389491598560086384449465221731098092569214365761993\", \"xz_cap\": \"150062066489373420507719217254311790740427725403825007037152849866415782576587486712131713604689589681244809386765346128623695865673816108592332833610283702753508042526336056573733100235595347795716228004419377271661814131617346937343346970405952976017060429441735767816052544446443437920569652349468032276754021060968888746745694146581004622792539896364866617635098108595747045059130225928868136856414440198847918214497434542671424672612963324375861916148917548116611547639187908075414427392278176018657413082616621714883628074737884039316422306476765869800284136492209829916959351805517243811842271132447219857035253813171839018336650181215043415990479062254004579611092707580684438599446906\", \"xr_cap\": [[\"age\", \"1048731294807617897919690520726010677408582237007731686128940247647290719867363802621239285748859657507291279707885711015022861258562766312511604952788445566330108649260328920437214754019021262843790415405177237783522801785563491251804750696536890037348950812289206786983381517529183671298224274209203897379150103109290516378884930615410595940413232285977997057809503635692507847259090502783179921588570716386641556460582727949665761461557512163428799285548369593604771256423859556682563632808373070275606615199968959363747218526893179748689622589666328084522543450250453433406581350672110187288192122931399949481475062399349625542142741169407782952909532146634562895912089512492043948887673446\"], [\"timestamp\", \"556576659024252438813493206270656509138478374978294729358917477876127959468070795959085174322401319452785720613614765286583812135586433146581422342677212991468674788747926087229996240111396372308304068109810510231686676058893829594311344925595041220233092226114039858215390029970457070235265483310799343579000177279499973848339489019878880326126548378525020083619623194245230304385182365358808207373608451722974078966948198650524090162029567141766948329175141332607701326294306368991278588925535418333452556048172967026801145789002405373957649456898376113488755861625456296789716551263450000694659842780096753568216421864834849960973726766466666688303657113280036781057274357407021121978979730\"], [\"date\", \"1305070432925481717679339209719151884897509541834326728471380585419162330433960752012602561551621852992701700564840837517003910628554953451352549774288589911984835064778060918229100270692869408745037433276908442619622446451614513970768950478062271219970607781517158101737096477456235595263941334545624778523556983842992294537881241453856605592929994927772852407902829765189438681325908314242207898008974359006559557550659841885701906218129108030704341484444197532000519229581219721832613117571446979114324114749152272394545723574092312052595087838749145688655776889331785512707942516327108007227015737453668940705422451250730987536710546476620944003963447953874945045975043777176675489057675978\"], [\"master_secret\", \"539950658555700510093022813588875356694612122579307981433764572993826087545649602653502854184003669405858581895177355246330352908728373027611334967746040376422741353938471231883509776897816611412698723307487101860266121252672273024305668958030293927767881095955266444108916882711575293578802889261901002846678005922999143752455214121282618240781854769065310541293658877847588480955119860195980400895816897700455356076470603905389752713353264269318909876371249648801617618632015801091113212084419731785764699496043456375533439826930839912789515270912167194426970810695332082219471546367461411391338408543374972525948373542963031963221373505002716082868212244901558427032362576119279457900285450\"], [\"degree\", \"419891950987753133007454243897683266119520687890168023328809991928638041302563205290628585749671945361273938149517484182133266408510763419301533719928707258139431161738837860142079349927799936324296420115364419919031005955629825934243687611545819243636202724151595010075341247776450109060023157628438470182009820609534987965867644004515814170511985047489973147487688882955251271665350912716690978544346475949909480787193055875305685237186348063526873484589274475804143245861697182977735963374878469896658060331189194510245607132956011246320664277375039372961401992639605246902694994815064244634557960869388908140544843753387978988257615523963726436199463895485533686106382622502310741186854713\"], [\"name\", \"376632106994519933621812583500889637110978589569810928449410678922755573414145224232744449840067137773245305860235842444997732624690191479296235734093733844058152464213235833795015020644993159568208326816933533697367243944123525359719211079147820501079833570726429477336709776005535280558433646462801665001708784022441855180022710709690208735304310237388377780659611271040136333327150747147159816033593615763853771584718193439033945728577873169057721275988753687070653370170777991874996058818429538376772135343713593050159933897553670233494928743129573556228797318365363118034380241682036394129300198036812797940942931867323607389492647099162148047294982619671118916653609329051403988528044508\"]]}, \"nonce\": \"666437485904798159259965\"}","SchemaId":"V9dPQBraK4Fv9Z9rtNAhxg:2:degree schema:70.99.67","ConnectionId":"f53f3b25-a177-4b72-96ad-f590ff396c5d","CredentialRequestMetadataJson":"{\"master_secret_blinding_data\":{\"v_prime\":\"23159042049018614134454342858573857984796267984778810358613113212600332259379847961673888827643171585003394480613174999925426928056660697193764989106868479082525996498147992699789983664096874534346948795022994348392350889642421343269455406571875366216864895977262173552914224569882144338867380185791990482701839568759533747918290066323990759374837597563980044322105835106448294690704710450739045638603172554104840898650007912433904376425646614496807606347116348438938580132401464633811785602423114465940339992945300726980781932178925227969301514494263158358276565192694984825091729004009906434310350667136343770284470695697783356414158487202\",\"vr_prime\":null},\"nonce\":\"577451570266249235776155\",\"master_secret_name\":\"4766327f-43d6-455e-9e45-9a7cca6335b1\"}","State":"Requested","Id":"3c54890f-8995-4478-931e-f52db6f13b6b","CreatedAtUtc":"2021-03-25T09:33:35.852641","UpdatedAtUtc":"2021-03-25T09:34:13.012204"}]
And this is how my proof request looks like:
[{"RequestJson":"{\"name\": \"Proof of Education\", \"version\": \"1.0\", \"requested_attributes\": {\"0_name_uuid\": {\"name\": \"name\", \"restrictions\": [{\"schema_name\": \"degree schema\"}]}, \"0_date_uuid\": {\"name\": \"date\", \"restrictions\": [{\"schema_name\": \"degree schema\"}]}, \"0_degree_uuid\": {\"name\": \"degree\", \"restrictions\": [{\"schema_name\": \"degree schema\"}]}}, \"requested_predicates\": {\"0_age_GE_uuid\": {\"name\": \"age\", \"p_type\": \">=\", \"p_value\": 18, \"restrictions\": [{\"schema_name\": \"degree schema\"}]}}, \"nonce\": \"1234567890\"}","State":"Requested","Id":"573c730a-07e6-4d0c-80ce-4e76dfbf790b","CreatedAtUtc":"2021-03-25T09:34:33.116409"}]
And in the present proof screen, ListCredentialsForProofRequestAsync call of proof service returns an empty list.
I am not sure what am I doing wrong here and how to proceed to debug this.
I solved it. Credential is in Requested state.
Hello,
I am using OSMA mobile app. I got it to work until present proof part where this function ListCredentialsForProofRequestAsync returns empty list even though I have a credential.
This is how my credential looks like:
[{"CredentialDefinitionId":"V9dPQBraK4Fv9Z9rtNAhxg:3:CL:58807:faber.agent.degree_schema","CredentialAttributesValues":[{"name":"name","value":"Alice Smith"},{"name":"date","value":"2018-05-28"},{"name":"degree","value":"Maths"},{"name":"age","value":"24"},{"name":"timestamp","value":"1616664806"}],"OfferJson":"{\"schema_id\": \"V9dPQBraK4Fv9Z9rtNAhxg:2:degree schema:70.99.67\", \"cred_def_id\": \"V9dPQBraK4Fv9Z9rtNAhxg:3:CL:58807:faber.agent.degree_schema\", \"key_correctness_proof\": {\"c\": \"54264342220490677177830028389491598560086384449465221731098092569214365761993\", \"xz_cap\": \"150062066489373420507719217254311790740427725403825007037152849866415782576587486712131713604689589681244809386765346128623695865673816108592332833610283702753508042526336056573733100235595347795716228004419377271661814131617346937343346970405952976017060429441735767816052544446443437920569652349468032276754021060968888746745694146581004622792539896364866617635098108595747045059130225928868136856414440198847918214497434542671424672612963324375861916148917548116611547639187908075414427392278176018657413082616621714883628074737884039316422306476765869800284136492209829916959351805517243811842271132447219857035253813171839018336650181215043415990479062254004579611092707580684438599446906\", \"xr_cap\": [[\"age\", \"1048731294807617897919690520726010677408582237007731686128940247647290719867363802621239285748859657507291279707885711015022861258562766312511604952788445566330108649260328920437214754019021262843790415405177237783522801785563491251804750696536890037348950812289206786983381517529183671298224274209203897379150103109290516378884930615410595940413232285977997057809503635692507847259090502783179921588570716386641556460582727949665761461557512163428799285548369593604771256423859556682563632808373070275606615199968959363747218526893179748689622589666328084522543450250453433406581350672110187288192122931399949481475062399349625542142741169407782952909532146634562895912089512492043948887673446\"], [\"timestamp\", \"556576659024252438813493206270656509138478374978294729358917477876127959468070795959085174322401319452785720613614765286583812135586433146581422342677212991468674788747926087229996240111396372308304068109810510231686676058893829594311344925595041220233092226114039858215390029970457070235265483310799343579000177279499973848339489019878880326126548378525020083619623194245230304385182365358808207373608451722974078966948198650524090162029567141766948329175141332607701326294306368991278588925535418333452556048172967026801145789002405373957649456898376113488755861625456296789716551263450000694659842780096753568216421864834849960973726766466666688303657113280036781057274357407021121978979730\"], [\"date\", \"1305070432925481717679339209719151884897509541834326728471380585419162330433960752012602561551621852992701700564840837517003910628554953451352549774288589911984835064778060918229100270692869408745037433276908442619622446451614513970768950478062271219970607781517158101737096477456235595263941334545624778523556983842992294537881241453856605592929994927772852407902829765189438681325908314242207898008974359006559557550659841885701906218129108030704341484444197532000519229581219721832613117571446979114324114749152272394545723574092312052595087838749145688655776889331785512707942516327108007227015737453668940705422451250730987536710546476620944003963447953874945045975043777176675489057675978\"], [\"master_secret\", \"539950658555700510093022813588875356694612122579307981433764572993826087545649602653502854184003669405858581895177355246330352908728373027611334967746040376422741353938471231883509776897816611412698723307487101860266121252672273024305668958030293927767881095955266444108916882711575293578802889261901002846678005922999143752455214121282618240781854769065310541293658877847588480955119860195980400895816897700455356076470603905389752713353264269318909876371249648801617618632015801091113212084419731785764699496043456375533439826930839912789515270912167194426970810695332082219471546367461411391338408543374972525948373542963031963221373505002716082868212244901558427032362576119279457900285450\"], [\"degree\", \"419891950987753133007454243897683266119520687890168023328809991928638041302563205290628585749671945361273938149517484182133266408510763419301533719928707258139431161738837860142079349927799936324296420115364419919031005955629825934243687611545819243636202724151595010075341247776450109060023157628438470182009820609534987965867644004515814170511985047489973147487688882955251271665350912716690978544346475949909480787193055875305685237186348063526873484589274475804143245861697182977735963374878469896658060331189194510245607132956011246320664277375039372961401992639605246902694994815064244634557960869388908140544843753387978988257615523963726436199463895485533686106382622502310741186854713\"], [\"name\", \"376632106994519933621812583500889637110978589569810928449410678922755573414145224232744449840067137773245305860235842444997732624690191479296235734093733844058152464213235833795015020644993159568208326816933533697367243944123525359719211079147820501079833570726429477336709776005535280558433646462801665001708784022441855180022710709690208735304310237388377780659611271040136333327150747147159816033593615763853771584718193439033945728577873169057721275988753687070653370170777991874996058818429538376772135343713593050159933897553670233494928743129573556228797318365363118034380241682036394129300198036812797940942931867323607389492647099162148047294982619671118916653609329051403988528044508\"]]}, \"nonce\": \"666437485904798159259965\"}","SchemaId":"V9dPQBraK4Fv9Z9rtNAhxg:2:degree schema:70.99.67","ConnectionId":"f53f3b25-a177-4b72-96ad-f590ff396c5d","CredentialRequestMetadataJson":"{\"master_secret_blinding_data\":{\"v_prime\":\"23159042049018614134454342858573857984796267984778810358613113212600332259379847961673888827643171585003394480613174999925426928056660697193764989106868479082525996498147992699789983664096874534346948795022994348392350889642421343269455406571875366216864895977262173552914224569882144338867380185791990482701839568759533747918290066323990759374837597563980044322105835106448294690704710450739045638603172554104840898650007912433904376425646614496807606347116348438938580132401464633811785602423114465940339992945300726980781932178925227969301514494263158358276565192694984825091729004009906434310350667136343770284470695697783356414158487202\",\"vr_prime\":null},\"nonce\":\"577451570266249235776155\",\"master_secret_name\":\"4766327f-43d6-455e-9e45-9a7cca6335b1\"}","State":"Requested","Id":"3c54890f-8995-4478-931e-f52db6f13b6b","CreatedAtUtc":"2021-03-25T09:33:35.852641","UpdatedAtUtc":"2021-03-25T09:34:13.012204"}]
And this is how my proof request looks like:
[{"RequestJson":"{\"name\": \"Proof of Education\", \"version\": \"1.0\", \"requested_attributes\": {\"0_name_uuid\": {\"name\": \"name\", \"restrictions\": [{\"schema_name\": \"degree schema\"}]}, \"0_date_uuid\": {\"name\": \"date\", \"restrictions\": [{\"schema_name\": \"degree schema\"}]}, \"0_degree_uuid\": {\"name\": \"degree\", \"restrictions\": [{\"schema_name\": \"degree schema\"}]}}, \"requested_predicates\": {\"0_age_GE_uuid\": {\"name\": \"age\", \"p_type\": \">=\", \"p_value\": 18, \"restrictions\": [{\"schema_name\": \"degree schema\"}]}}, \"nonce\": \"1234567890\"}","State":"Requested","Id":"573c730a-07e6-4d0c-80ce-4e76dfbf790b","CreatedAtUtc":"2021-03-25T09:34:33.116409"}]
And in the present proof screen, ListCredentialsForProofRequestAsync call of proof service returns an empty list.
I am not sure what am I doing wrong here and how to proceed to debug this.