Skip to content

Commit 2c0cac6

Browse files
committed
fix spelling and mk lints
1 parent 71a0d7c commit 2c0cac6

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

.config/dictionaries/project.dic

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ chrono
3939
cids
4040
ciphertext
4141
ciphertexts
42+
Coap
4243
codegen
4344
codepoints
4445
coti
@@ -89,6 +90,7 @@ fstat
8990
fstatat
9091
futimens
9192
genhtml
93+
genpkey
9294
GETFL
9395
getres
9496
giantstep
@@ -169,6 +171,7 @@ openat
169171
opentelemetry
170172
outlen
171173
Outparam
174+
outpubkey
172175
parameterises
173176
permissioned
174177
permissionless

rust/c509-certificate/src/signing.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! ED25519 public and private key implementation.
22
3-
// cspell: words outpubkey genpkey
4-
53
use std::{fmt::Display, path::Path, str::FromStr};
64

75
use ed25519_dalek::{

rust/signed_doc/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- cspell: words collabs -->
2+
13
# Catalyst signed document
24

35
Catalyst signed document is [COSE] based document structure,
@@ -22,7 +24,7 @@ which **must** be present (most of the fields originally defined by this
2224
(this parameter is used to indicate the content type of the payload data,
2325
in this particular case `JSON` format is used).
2426
* `content encoding` (CBOR type `text`): `br` CBOR type `text`
25-
(this parameter is used to indicate the content encodings algorith of the payload data,
27+
(this parameter is used to indicate the content encodings algorithm of the payload data,
2628
in this particular case [brotli] compression data format is used).
2729
* `type` (CBOR type `text`): CBOR encoded UUID `#6.37(bytes)`.
2830
* `id` (CBOR type `text`): CBOR encoded ULID `#6.32780(bytes)`.
@@ -45,7 +47,7 @@ Which stores an actual document data which should follow to some schema.
4547
### Signature protected header
4648

4749
As it mentioned earlier, Catalyst signed document utilizes `COSE Signed Data Object` format,
48-
which allows to provide mutlisignature functionality.
50+
which allows to provide mutli-signature functionality.
4951
In that regard,
5052
each Catalyst signed document [COSE] signature **must** include the following protected header field:
5153

@@ -65,7 +67,8 @@ Prepare non-signed document,
6567
`meta.json` file should follow the [`meta.schema.json`](./meta.schema.json).
6668

6769
```shell
68-
cargo run -p signed_doc --example mk_signed_doc build signed_doc/doc.json signed_doc/schema.json signed_doc/doc.cose signed_doc/meta.json
70+
cargo run -p signed_doc --example mk_signed_doc build
71+
signed_doc/doc.json signed_doc/schema.json signed_doc/doc.cose signed_doc/meta.json
6972
```
7073

7174
Sign document
@@ -77,7 +80,8 @@ cargo run -p signed_doc --example mk_signed_doc sign private.pem signed_doc/doc.
7780
Verify document
7881

7982
```shell
80-
cargo run -p signed_doc --example mk_signed_doc verify public.pem signed_doc/doc.cose signed_doc/schema.json
83+
cargo run -p signed_doc --example mk_signed_doc verify
84+
public.pem signed_doc/doc.cose signed_doc/schema.json
8185
```
8286

8387
Catalyst signed document CBOR bytes example

rust/signed_doc/examples/mk_signed_doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum Cli {
3333
Build {
3434
/// Path to the document in the json format
3535
doc: PathBuf,
36-
/// Path to the json schema (Draft 7) to validate document agains it
36+
/// Path to the json schema (Draft 7) to validate document against it
3737
schema: PathBuf,
3838
/// Path to the output COSE file to store.
3939
output: PathBuf,

rust/vote-tx-v2/src/gen_tx/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! A Catalyst generalized vote transaction object, structured following this
22
//! [spec](https://input-output-hk.github.io/catalyst-libs/architecture/08_concepts/catalyst_voting/gen_vote_tx/)
33
4-
// cspell: words Coap
5-
64
mod builder;
75
mod event_map;
86
mod tx_body;

rust/vote-tx-v2/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! A Catalyst vote transaction v2 objects, structured following this
22
//! [spec](https://input-output-hk.github.io/catalyst-libs/architecture/08_concepts/catalyst_voting/)
33
4-
// cspell: words Coap
5-
64
use anyhow::anyhow;
75
use minicbor::{Decode, Decoder, Encode, Encoder};
86

0 commit comments

Comments
 (0)