hyperledger-archives / aries-mobile-agent-xamarin

Apache License 2.0
39 stars 31 forks source link

Cannot create proof #17

Open foxbike opened 3 years ago

foxbike commented 3 years ago

Hi,

I have implemented a new screen to manage proofs. When i send my proof presentation, i received this error

Hyperledger.Indy.InvalidStructureException Message=A value being processed is not valid.

The error is thrown by this method "indy_prover_create_proof" in libindy. Any idea?

horationunez commented 3 years ago

@foxbike what are you using to issue the request to the mobile agent?

ganbold6 commented 3 years ago

I encounter the same problem too. I used an agent based on Aries .dotnet framework to send request. The following is the proof request var proofRequest = new ProofRequest { Name = "Proof of Education", Version = "1.0", Nonce = await AnonCreds.GenerateNonceAsync(), RequestedAttributes = new Dictionary<string, ProofAttributeInfo> { { "referent1", new ProofAttributeInfo { Name = "name", Restrictions = new List { new AttributeFilter {
SchemaName = "degree-schema" } } }} } };

FahmiOsman commented 2 years ago

If you are using the sample code from dotnet framework to issue credential, make sure the timestamp field is not empty, the degree-schema has timestamp attribute. I got it to work after inserting the value in the timestamp field.

I encounter the same problem too. I used an agent based on Aries .dotnet framework to send request. The following is the proof request var proofRequest = new ProofRequest { Name = "Proof of Education", Version = "1.0", Nonce = await AnonCreds.GenerateNonceAsync(), RequestedAttributes = new Dictionary<string, ProofAttributeInfo> { { "referent1", new ProofAttributeInfo { Name = "name", Restrictions = new List { new AttributeFilter { SchemaName = "degree-schema" } } }} } };