Skip to content

Commit e35c435

Browse files
committed
fix CI checks
1 parent 68633d9 commit e35c435

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ the following properties are used:
8787

8888
1. Each proposal, defined by the "Vote plan id" and "Proposal index", defines a number of possible options.
8989
2. [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

133133
Vote:
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.
148148
However, 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
160161
As mentioned earlier, the content type of the [COSE] signature payload is `application/cbor`.
161162
In 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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ vote_tx_body = [
1111
]
1212

1313
event = { * event_key => any }
14-
event_key = int / tstr
14+
event_key = int / text
1515

1616
votes = [+ vote]
1717
vote = [
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
cose_payload = Blake2b-256
2-
Blake2b-256 = #6.32782(bytes .size 32) ; Blake2b-256 hash bytes
1+
cose_payload = blake2b-256
2+
blake2b-256 = #6.32782(bytes .size 32) ; Blake2b-256 hash bytes

0 commit comments

Comments
 (0)