Skip to content

Commit 8530ebc

Browse files
authored
Merge pull request #114 from zkFold/113-asterizm-add-flow-diagrams
Asterizm flow diagrams
2 parents c0b9499 + f2e73d8 commit 8530ebc

File tree

5 files changed

+326
-3
lines changed

5 files changed

+326
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ cabal.sandbox.config
2424
cabal.project.local
2525
compiled_scripts/*
2626
logs
27-
*.svg
2827

2928
e2e-test/*/keys
3029
local-testnet/example

e2e-test/asterizm/Asterizm.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ Available options:
164164

165165
### client
166166

167-
Command used by client to post (reveal) original message to the blockchain.
167+
Command used by client to post (reveal) original message to the blockchain, as datum accompanying token minted by the client. Transaction references UTxO with relayer's token. Client's minting policy validates *a)* the relayer's policy ID against the Registry (identified by thread-token) and *b)* compatibility between the client's message and the message-hash contained in the relayer's token-name.
168+
169+
Note that client's *minting policy* is parameterized by the client's pub-key-hash and the thread-token's policy ID.
168170

169171
```shell
170172
cabal run zkfold-cli:asterizm -- client --help
@@ -240,6 +242,10 @@ Estimated transaction fee: 397683 Lovelace
240242
Transaction Id: 9f17b5d93780c7a7149e53cbde2747515a868748259235554917635c41304472
241243
```
242244

245+
![init Tx](figures/01-init-tx.svg)
246+
247+
**Figure:** Initialization Tx
248+
243249
### Message
244250

245251
```shell
@@ -266,6 +272,12 @@ Estimated transaction fee: 884420 Lovelace
266272
Transaction Id: 34b5073da5da6869dddc24b3b2d75c3a1c3ea90769d944c2170ec6aee99af5e1
267273
```
268274

275+
![relayer Tx](figures/03-relayer-tx.svg)
276+
277+
**Figure:** Relayer Tx
278+
279+
(Note: Bob is "relayer1".)
280+
269281
### Client
270282

271283
```shell
@@ -279,6 +291,12 @@ Estimated transaction fee: 1383689 Lovelace
279291
Transaction Id: bde3ddf213cb648f66b7c0ed5242d825263cd2fe2a842679b2d990ddcf4ec37b
280292
```
281293

294+
![client Tx](figures/04-client-tx.svg)
295+
296+
**Figure:** Client Tx
297+
298+
(Note: Alice plays the role of the Client.)
299+
282300
### Retrieve Messages
283301

284302
```shell
@@ -291,4 +309,4 @@ Client's messages on-chain:
291309
B "Hello, Asterizm!"
292310
```
293311

294-
*Note:* You can reproduce this workflow using the shell files provided in directory `./e2e-test/asterizm`. (Make this your active directory.) It is assumed that you have independently generated .addr, .skey and .vkey files for users "someone", "asterizm", "alice", "bob", "charlie" and "dylan" in directory `./e2e-test/asterizm/keys` and that you have funded "someone", "alice" and "bob".
312+
*Note:* You can reproduce this workflow using the shell scripts provided in directory `./e2e-test/asterizm`. (Make this your active directory.) It is assumed that you have independently generated .addr, .skey and .vkey files for users "someone", "asterizm", "alice", "bob", "charlie" and "dylan" in directory `./e2e-test/asterizm/keys` and that you have funded "someone", "alice" and "bob".

e2e-test/asterizm/figures/01-init-tx.svg

Lines changed: 102 additions & 0 deletions
Loading

e2e-test/asterizm/figures/03-relayer-tx.svg

Lines changed: 102 additions & 0 deletions
Loading

e2e-test/asterizm/figures/04-client-tx.svg

Lines changed: 102 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)