@@ -87,7 +87,7 @@ the following properties are used:
8787
88881 . Each proposal, defined by the "Vote plan id" and "Proposal index", defines a number of possible options.
89892 . [ ristretto255] as a backend cryptographic group.
90- 4 . A commitment key $ck$ defined as a [ BLAKE2b-512] hash of the "Vote plan id" bytes.
90+ 3 . A commitment key $ck$ defined as a [ BLAKE2b-512] hash of the "Vote plan id" bytes.
9191
9292#### Transaction signing (witness generation)
9393
@@ -114,7 +114,7 @@ Expected witness (includes signature)
114114
115115<!-- markdownlint-disable code-block-style -->
116116``` hex
117- 0200000000e6c8aa48925e37fdab75db13aca7c4f39068e12eeb3af8fd1f342005cae5ab9a1ef5344fab2374e9436a67f57041899693d333610dfe785d329988736797950d
117+ 0200000000e6c8aa48925e37fdab75db13aca7c4f39068e12eeb3af8fd1f342005cae5ab9a1ef5344fab2374e9436a67f57041899693d333610dfe785d329988736797950d
118118```
119119<!-- markdownlint-enable code-block-style -->
120120
@@ -132,12 +132,12 @@ Expected witness (includes signature)
132132
133133Vote:
134134
135- * ` choice ` - a voter choice.
136- * ` proof ` - a voter proof, could be ` null ` .
137- * ` prop_id ` - a proposal id for which ` choice ` is made, could be ` null ` .
138- For that case where for the voting event defined only ** one** proposal,
139- so it's redundant to provide an additional identifier for the proposal,
140- so it could be placed ` null ` .
135+ * ` choice ` - a voter choice.
136+ * ` proof ` - a voter proof, could be ` null ` .
137+ * ` prop_id ` - a proposal id for which ` choice ` is made, could be ` null ` .
138+ For that case where for the voting event defined only ** one** proposal,
139+ so it's redundant to provide an additional identifier for the proposal,
140+ so it could be placed ` null ` .
141141
142142` voters_data ` - an any additional voter's specific data.
143143
@@ -147,9 +147,10 @@ Vote:
147147[ COSE] is a flexible security protocol that supports various types of security messages.
148148However, only ` COSE Signed Data Object ` or ` COSE_Sign ` type is used.
149149
150- The following header must be included in the [ COSE] signasture .
150+ The following header must be included in the [ COSE] signature .
151151
152152` protected ` :
153+
153154* ` content type ` : ` application/cbor `
154155 (this parameter is used to indicate the content type of the data in the payload or ciphertext fields).
155156
@@ -160,9 +161,11 @@ Any other headers as `alg`, `kid` etc. could be specified of any kind and not de
160161As mentioned earlier, the content type of the [ COSE] signature payload is ` application/cbor ` .
161162In particular it must be a [ CBOR] encoded [ BLAKE2b-256] hash bytes:
162163
164+ <!-- markdownlint-disable code-block-style -->
163165``` CDDL
164166{{ include_file('src/architecture/08_concepts/catalyst_voting/tx_v2_cose_payload.cddl') }}
165167```
168+ <!-- markdownlint-enable code-block-style -->
166169
167170## Rationale
168171
0 commit comments