Skip to content

Commit 60f3538

Browse files
author
Elias Strehle
committed
Clarify instructions
Signed-off-by: Elias Strehle <[email protected]>
1 parent aca310c commit 60f3538

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Diff for: demo/AcmeDemoWorkshop.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,18 @@ We're going to do option (a), but you can try to implement option (b) as homewor
172172
First though we need to register a schema and credential definition. Find this code:
173173

174174
``` python
175-
# TODO: Create schema
176175
# acme_schema_name = "employee id schema"
177176
# acme_schema_attrs = ["employee_id", "name", "date", "position"]
178177
await acme_agent.initialize(
179178
the_agent=agent,
180179
# schema_name=acme_schema_name,
181180
# schema_attrs=acme_schema_attrs,
181+
)
182+
183+
# TODO publish schema and cred def
182184
```
183185

184-
... and just remove the ```TODO ```, then uncommment the rest. Easy, no?
186+
... and uncomment the code lines. Replace the ```# TODO``` comment with the following code:
185187

186188
``` python
187189
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
194196
random.randint(1, 101),
195197
)
196198
)
197-
# (schema_id, cred_def_id) = await agent.register_schema_and_creddef(
199+
# register schema and cred def
200+
(schema_id, cred_def_id) = await agent.register_schema_and_creddef(
198201
"employee id schema",
199202
version,
200203
["employee_id", "name", "date", "position"],

Diff for: demo/runners/acme.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ async def main(args):
136136
)
137137

138138
acme_agent.public_did = True
139-
# TODO: Create schema
140139
# acme_schema_name = "employee id schema"
141140
# acme_schema_attrs = ["employee_id", "name", "date", "position"]
142141
await acme_agent.initialize(
@@ -145,6 +144,8 @@ async def main(args):
145144
# schema_attrs=acme_schema_attrs,
146145
)
147146

147+
# TODO publish schema and cred def
148+
148149
# generate an invitation for Alice
149150
await acme_agent.generate_invitation(display_qr=True, wait=True)
150151

0 commit comments

Comments
 (0)