Skip to content

Commit e0b7815

Browse files
committed
wip
1 parent 165a2ee commit e0b7815

File tree

5 files changed

+28
-4
lines changed

5 files changed

+28
-4
lines changed

docs/src/architecture/08_concepts/catalyst_voting/.pages

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ title: Catalyst Voting
22
arrange:
33
- crypto.md
44
- gen_vote_tx.md
5-
- jorm.md
6-
- cat_v2.md
5+
- v1.md
6+
- v2.md
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
vote-tx-v2 = gen-vote-tx<choice-data, proof-data, proposal>
2+
3+
choice-data = public-choice / private-choice
4+
5+
public-choice = uint
6+
private-choice = ciphertext
7+
8+
ciphertext = [group-element, group-element]
9+
group-element = bytes .size 32
10+
11+
proposal = UUID
12+
13+
proof-data = zk-proof
14+
15+
zk-proof = [[+ (announcement, ~ciphertext, r-response)], scalar]
16+
17+
announcement = (group-element, group-element, group-element)
18+
r-response = (scalar, scalar, scalar)
19+
20+
scalar = bytes .size 32
21+
group-element = bytes .size 32
22+
23+
;# include gen_vote_tx
24+
File renamed without changes.

docs/src/architecture/08_concepts/catalyst_voting/cat_v2.md renamed to docs/src/architecture/08_concepts/catalyst_voting/v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ Following that spec need to define a format of `choice`, `proof` and `prop_id`.
3434
<!-- markdownlint-disable max-one-sentence-per-line -->
3535

3636
<!-- markdownlint-disable max-one-sentence-per-line code-block-style -->
37-
??? note "vote transaction v2 definition: `vote_tx_v2.cddl`"
37+
??? note "vote transaction v2 definition: `vote_tx_v2_public.cddl`"
3838

3939
```CDDL
40-
{{ include_file('src/architecture/08_concepts/catalyst_voting/cddl/vote_tx_v2.cddl', indent=4) }}
40+
{{ include_file('src/architecture/08_concepts/catalyst_voting/cddl/vote_tx_v2_public.cddl', indent=4) }}
4141
```
4242
<!-- markdownlint-enable max-one-sentence-per-line code-block-style -->
4343

0 commit comments

Comments
 (0)