Skip to content

Commit 7af00b4

Browse files
committed
added create_credential endpoint
1 parent bb8f1a7 commit 7af00b4

File tree

3 files changed

+38
-363
lines changed

3 files changed

+38
-363
lines changed

libs/aries-basic-controller/aries_basic_controller/controllers/issuer.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ async def get_records(self):
2424
async def get_record_by_id(self, cred_ex_id):
2525
return await self.admin_GET(f"{self.base_url}/records/{cred_ex_id}")
2626

27-
# Create a credential, automating the entire flow
28-
# TODO trace=True causes error. Not sure why
29-
# async def create_credential(self, connection_id, schema_id, cred_def_id, attributes, comment: str = "",
30-
# auto_remove: bool = True, trace: bool = False):
31-
#
32-
# body = await self.create_credential_body(connection_id, schema_id, cred_def_id, attributes, comment,
33-
# auto_remove, trace)
34-
async def create_credential(self, body):
35-
return await self.admin_POST(f"{self.base_url}/create", json_data=body)
36-
3727
# Send holder a credential, automating the entire flow
3828
# TODO trace=True causes error. Not sure why
3929
async def send_credential(self, connection_id, schema_id, cred_def_id, attributes, comment: str = "",

0 commit comments

Comments
 (0)