Skip to content

Commit c0d6b1c

Browse files
Issuerv2 (#50)
* Made Changes to Issuer.py * Issuerv2 *added issuer_did to the body *formatted issuer_v2.py * Fixed typo * Formatted wallet.py * Bump version from 0.2.8 to 0.2.9 Co-authored-by: morrieinmaas <motechnix@gmail.com>
1 parent d04fc0e commit c0d6b1c

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

aries_cloudcontroller/controllers/issuer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def remove_record(self, cred_ex_id):
183183

184184
# Send a problem report for a credential exchange
185185
async def send_problem_report(self, cred_ex_id, explanation: str):
186-
body = {"explain_ltxt": explanation}
186+
body = {"description": explanation}
187187

188188
return await self.admin_POST(
189189
f"{self.base_url}/records/{cred_ex_id}/problem-report", json_data=body

aries_cloudcontroller/controllers/issuer_v2.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async def remove_record(self, cred_ex_id):
166166

167167
# Send a problem report for a credential exchange
168168
async def problem_report(self, cred_ex_id, explanation: str):
169-
body = {"explain_ltxt": explanation}
169+
body = {"description": explanation}
170170

171171
return await self.admin_POST(
172172
f"{self.base_url}/records/{cred_ex_id}/problem-report", json_data=body
@@ -182,6 +182,7 @@ async def create_credential_body(
182182
comment: str = "",
183183
auto_remove: bool = True,
184184
trace: bool = False,
185+
dif_criterion: str = "",
185186
):
186187
# raises error if connection not active
187188
await self.connections.is_active(connection_id)
@@ -191,14 +192,21 @@ async def create_credential_body(
191192
issuer_did = extract_did(cred_def_id)
192193

193194
body = {
194-
"issuer_did": issuer_did,
195195
"auto_remove": auto_remove,
196-
"credential_proposal": {"@type": CRED_PREVIEW, "attributes": attributes},
196+
"comment": comment,
197197
"connection_id": connection_id,
198+
"credential_preview": {
199+
"@type": "issue-credential/2.0/credential-preview",
200+
"attributes": attributes,
201+
},
202+
"filter": {
203+
"indy": {
204+
"cred_def_id": cred_def_id,
205+
"schema_id": schema_id,
206+
"issuer_did": issuer_did,
207+
},
208+
},
198209
"trace": trace,
199-
"comment": comment,
200-
"cred_def_id": cred_def_id,
201210
}
202-
203211
credential_body = {**body, **schema_details}
204212
return credential_body

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def parse_requirements(filename):
2222
if __name__ == "__main__":
2323
setup(
2424
name=PACKAGE_NAME,
25-
version="0.2.8",
25+
version="0.2.9",
2626
description="A simple python package for controlling an aries agent through the admin-api interface",
2727
long_description=long_description,
2828
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)