Skip to content

Commit b67bab7

Browse files
committed
update
1 parent d3c6d3c commit b67bab7

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
vote_tx = [
2-
vote_tx_body,
1+
vote-tx = [
2+
vote-tx-body,
33
signature
44
]
55

6-
vote_tx_body = [
7-
vote_type
6+
vote-tx-body = [
7+
vote-type
88
event,
99
votes,
10-
voters_data,
10+
voters-data,
1111
]
1212

13-
vote_type = UUID ; e.g. Public or Private vote
14-
event = { * event_key => any }
15-
event_key = int / text
13+
vote-type = UUID ; e.g. Public or Private vote
14+
event = { * event-key => any }
15+
event-key = int / text
1616

1717
votes = [+ vote]
1818
vote = [
1919
choices,
2020
proof \ null,
21-
prop_id \ null,
21+
prop-id \ null,
2222
]
2323
choices = [+ choice]
2424
choice = encoded-cbor
2525
proof = encoded-cbor
26-
prop_id = encoded-cbor
26+
prop-id = encoded-cbor
2727

28-
voters_data = encoded-cbor
28+
voters-data = encoded-cbor
2929

3030
UUID = #6.37(bytes) ; UUID type
3131
signature = #6.98(COSE_Sign) ; COSE signature
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
cose_payload = blake2b-256
1+
cose-payload = blake2b-256
22
blake2b-256 = #6.32782(bytes .size 32) ; Blake2b-256 hash bytes
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
vote_tx_v2 = vote_tx
1+
vote-tx-v2 = gen-vote-tx
22

3-
choice = #6.24(bstr(choice_data))
4-
proof = #6.24(bstr(proof_data))
5-
prop_id = #6.24(bstr(proposal))
3+
choice = #6.24(bstr(choice-data))
4+
proof = #6.24(bstr(proof-data))
5+
prop-id = #6.24(bstr(proposal))
66

7-
choice_data = public_choice / private_choice
7+
choice-data = public-choice / private-choice
88

9-
public_choice = uint
10-
private_choice = ciphertext
9+
public-choice = uint
10+
private-choice = ciphertext
1111

12-
ciphertext = [group_element, group_element]
13-
group_element = bytes .size 32
12+
ciphertext = [group-element, group-element]
13+
group-element = bytes .size 32
1414

1515
proposal = UUID
1616

17-
proof_data = zk_proof
17+
proof-data = zk-proof
1818

19-
zk_proof = [[+ (announcement, ciphertext, r-response)], scalar]
19+
zk-proof = [[+ (announcement, ciphertext, r-response)], scalar]
2020

21-
announcement = (group_element, group_element, group_element)
22-
ciphertext = (group_element, group_element)
21+
announcement = (group-element, group-element, group-element)
22+
ciphertext = (group-element, group-element)
2323
r-response = (scalar, scalar, scalar)
2424

2525
scalar = bytes .size 32
26-
group_element = bytes .size 32
26+
group-element = bytes .size 32
2727

2828
;# include gen_vote_tx
2929

docs/src/architecture/08_concepts/catalyst_voting/gen_vote_tx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ Vote:
3737

3838
* `choices` - a collection of voter choices for the proposal.
3939
* `proof` - a voter proof, could be `null`.
40-
* `prop_id` - a proposal id for which `choice` is made, could be `null`.
40+
* `prop-id` - a proposal id for which `choice` is made, could be `null`.
4141
For that case where for the `event` defined only **one** proposal,
4242
so it's redundant to provide an additional identifier for the proposal,
4343
so it could be placed `null`.
4444

45-
`voters_data` - an any additional voter's specific data.
45+
`voters-data` - an any additional voter's specific data.
4646

4747
### Transaction signing
4848

0 commit comments

Comments
 (0)