-
Notifications
You must be signed in to change notification settings - Fork 0
/
aca-py_rabbit_hole
63 lines (50 loc) · 1.43 KB
/
aca-py_rabbit_hole
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
400
Undocumented
Error: Issuer has no operable cred def for proposal spec {'cred_def_id': '9BfpHx9ZoGh3fhC1tn3Qy5:3:CL:816:1', 'issuer_did': '9BfpHx9ZoGh3fhC1tn3Qy5', 'schema_id': '9BfpHx9ZoGh3fhC1tn3Qy5:2:natstest:1.0', 'schema_issuer_did': '9BfpHx9ZoGh3fhC1tn3Qy5', 'schema_name': 'natstest', 'schema_version': '1.0'}.
403
Undocumented
Error: Endorser Info is not set up in connection metadata for this connection record
Steps to success on aca-py
Author must put metadata in the connection:
connections/{con_id}/metadata
{
"metadata": {
"endorser_info":
{
"endorser_did": "9BfpHx9ZoGh3fhC1tn3Qy5"
},
"use_public_did": "9BfpHx9ZoGh3fhC1tn3Qy5"
}
}
Both Author and Endorser must have public DIDs
POST /wallet/did/public
Send cred def from author to endorser
Endorser must endorse the transaction then write it to the ledger
{
"auto_remove": true,
"comment": "string",
"connection_id": "94950ea9-a8cb-4681-a383-78b919521535",
"credential_preview": {
"@type": "issue-credential/2.0/credential-preview",
"attributes": [{
"name": "name",
"value": "Buddy"
},
{
"name": "date",
"value": "11152021"
}
]
},
"filter": {
"indy": {
"cred_def_id": "9BfpHx9ZoGh3fhC1tn3Qy5:3:CL:816:3",
"issuer_did": "9BfpHx9ZoGh3fhC1tn3Qy5",
"schema_id": "9BfpHx9ZoGh3fhC1tn3Qy5:2:natstest:1.0",
"schema_issuer_did": "9BfpHx9ZoGh3fhC1tn3Qy5",
"schema_name": "natstest",
"schema_version": "1.0"
}
},
"trace": true
}