From 60f3538a38ec10dba36af13311c94acfeeae1cca Mon Sep 17 00:00:00 2001 From: Elias Strehle Date: Wed, 10 Nov 2021 10:36:57 +0100 Subject: [PATCH] Clarify instructions Signed-off-by: Elias Strehle --- demo/AcmeDemoWorkshop.md | 9 ++++++--- demo/runners/acme.py | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/demo/AcmeDemoWorkshop.md b/demo/AcmeDemoWorkshop.md index 5c596f3417..e8ec561a72 100644 --- a/demo/AcmeDemoWorkshop.md +++ b/demo/AcmeDemoWorkshop.md @@ -172,16 +172,18 @@ We're going to do option (a), but you can try to implement option (b) as homewor First though we need to register a schema and credential definition. Find this code: ``` python - # TODO: Create schema # acme_schema_name = "employee id schema" # acme_schema_attrs = ["employee_id", "name", "date", "position"] await acme_agent.initialize( the_agent=agent, # schema_name=acme_schema_name, # schema_attrs=acme_schema_attrs, + ) + + # TODO publish schema and cred def ``` -... and just remove the ```TODO ```, then uncommment the rest. Easy, no? +... and uncomment the code lines. Replace the ```# TODO``` comment with the following code: ``` python with log_timer("Publish schema and cred def duration:"): @@ -194,7 +196,8 @@ First though we need to register a schema and credential definition. Find this random.randint(1, 101), ) ) - # (schema_id, cred_def_id) = await agent.register_schema_and_creddef( + # register schema and cred def + (schema_id, cred_def_id) = await agent.register_schema_and_creddef( "employee id schema", version, ["employee_id", "name", "date", "position"], diff --git a/demo/runners/acme.py b/demo/runners/acme.py index f112e5e04b..13361aafb0 100644 --- a/demo/runners/acme.py +++ b/demo/runners/acme.py @@ -136,7 +136,6 @@ async def main(args): ) acme_agent.public_did = True - # TODO: Create schema # acme_schema_name = "employee id schema" # acme_schema_attrs = ["employee_id", "name", "date", "position"] await acme_agent.initialize( @@ -145,6 +144,8 @@ async def main(args): # schema_attrs=acme_schema_attrs, ) + # TODO publish schema and cred def + # generate an invitation for Alice await acme_agent.generate_invitation(display_qr=True, wait=True)