aries-mobile-agent-xamarin icon indicating copy to clipboard operation
aries-mobile-agent-xamarin copied to clipboard

Cannot create proof

Open foxbike opened this issue 4 years ago • 3 comments

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?

foxbike avatar Dec 09 '20 13:12 foxbike

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

horationunez avatar Apr 15 '21 20:04 horationunez

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<AttributeFilter> { new AttributeFilter {
SchemaName = "degree-schema" } } }} } };

ganbold6 avatar Aug 31 '21 10:08 ganbold6

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" } } }} } };

FahmiOsman avatar Oct 19 '21 10:10 FahmiOsman