Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Hyperledger Indy error: CommonInvalidStructure while using await sdk.proverCreateProof() #137

Open
dexterity2k16 opened this issue Apr 30, 2019 · 0 comments

Comments

@dexterity2k16
Copy link

dexterity2k16 commented Apr 30, 2019

This is the proof_request json:

var proofReq = {
                'nonce': '123456789',
                'name': 'xyzabcd',
                'version': '1.0',
                'requested_attributes': {
                    'attr1_referent': {
                        'name': 'Firstname'
                    },
                    'attr2_referent': {
                        'name': 'Lastname'
                    },
                    'attr3_referent': {
                        'name': 'acl'
                    }
                },
                'requested_predicates': {
                    'predicate1_referent': {
                        'name': 'average',
                        'p_type': '>=',
                        'p_value': 4,
                        // 'restrictions': [{'cred_def_id': faberTranscriptCredDefId}]
                    }
                }
            }

this is the requested_credentials_json:

let requested_credentials_json = {
               'self_attested_attributes': {
                   'attr1_referent':'shrinivas',
                   'attr2_referent':'deshmukh',
                   'attr3_referent':'Tnd8R2nbJBKW4rEL8ag88U'
               },
               'requested_attributes': {
                   'attr1_referent': { 'cred_id': referent, 'revealed': true },
               
               'attr2_referent': { 'cred_id': referent, 'revealed': true },
               
               'attr3_referent': { 'cred_id': referent, 'revealed': true }
               },
           
               'requested_predicates': {
                   'predicate1_referent': { 'cred_id': referent }
               }
           }

this is the schema_json:

{ 'Th7MpTaRZVRYnPiabds81Y:2:newSchema1212:2.0':
   { ver: '1.0',
     id: 'Th7MpTaRZVRYnPiabds81Y:2:newSchema1212:2.0',
     name: 'newSchema1212',
     version: '2.0',
     attrNames: [ 'Lastname', 'Firstname', 'acl' ],
     seqNo: 17 } }

This is the error:

"name": "IndyError",
"message": "CommonInvalidStructure",
"indyCode": 113,
"indyName": "CommonInvalidStructure",
"indyCurrentErrorJson": null

Any help is highly appreciated! Thank you in advance.

@dexterity2k16 dexterity2k16 changed the title CommonInvalidStructure while using await sdk.proverCreateProof() Hyperledger Indy error: CommonInvalidStructure while using await sdk.proverCreateProof() Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant