Skip to content

Commit 9ed8ca2

Browse files
committed
wip
1 parent b0efaa8 commit 9ed8ca2

File tree

1 file changed

+12
-6
lines changed
  • docs/src/architecture/08_concepts/catalyst_voting

1 file changed

+12
-6
lines changed

docs/src/architecture/08_concepts/catalyst_voting/tx_v2.cddl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
vote_tx = [
2-
network_id: UUID, ; e.g. Midnight, Catalyst etc.
2+
brand_id: UUID, ; e.g. Midnight, Catalyst etc.
33
campaign_id: UUID, ; e.g. Fund 1, Fund 2 etc.
4+
event_id: UUID, ;
5+
category_id: UUID,
6+
vote_type: UUID,
47
challenge_info,
58
votes,
6-
]
7-
8-
challenge_info = [
9-
challenge_id: UUID,
10-
proposals: ? [+ UUID],
9+
voters_data: encoded_cbor
1110
]
1211

1312
votes = [+ vote]
1413
vote = (public_vote / private_vote)
14+
;---
15+
vote = [ choices, ? proof, ? prop_id ]
16+
choices = [ + choice ]
17+
choice = encoded-cbor
18+
;---
1519

1620
public_vote = [2* bool]
1721
; public_vote = [2* scalar]
@@ -32,3 +36,5 @@ scalar = (bytes .size 32)
3236
group_element = (bytes .size 32)
3337

3438
UUID = #6.37(bytes) ; UUID type
39+
40+
#6.24( bstr( biguint ) )

0 commit comments

Comments
 (0)