Skip to content

Commit 5da75d0

Browse files
committed
wupdate
1 parent d3c6d3c commit 5da75d0

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
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: 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

0 commit comments

Comments
 (0)