hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

Proof Predicate issue #216

Open aangCrypto opened 2 years ago

aangCrypto commented 2 years ago

There are a few issues that I have ran to while trying to use the proof predicate.

  1. Returning empty credentials. The function ListCredentialsForProofRequestAsync returns an empty list when request_predicates is included in the proof request JSON. I have worked around this by converting it into requesting_attribute to get the needed credentials id before converting it back to request_predicates later.

  2. Error: "A value being processed is not valid.". When creating the proof presentation. From what I know the value should be in the correct format, both are int which now I'm not sure why it is happening. Did anyone manage to successfully create a proof predicate with hyperledger dotnet?

For reference: this is the JSON used to request predicate

@"{ ""name"":""Proof Request"", ""version"":""1.0"", ""nonce"":""1234567890"", ""requested_predicates"":{ ""dob"" : { ""name"": ""age"", ""p_type"": ""<="", ""p_value"": 18, } }, ""non_revoked"":{ ""to"": 2147483647 } }";

Thank you in advanced!