This repository was archived by the owner on Jan 22, 2020. It is now read-only.
This repository was archived by the owner on Jan 22, 2020. It is now read-only.
Hyperledger Indy error: CommonInvalidStructure while using await sdk.proverCreateProof() #137
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels