1+ <!-- cspell: words collabs -->
2+
13# Catalyst signed document
24
35Catalyst 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
4749As 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.
4951In that regard,
5052each 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
7174Sign document
@@ -77,7 +80,8 @@ cargo run -p signed_doc --example mk_signed_doc sign private.pem signed_doc/doc.
7780Verify 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
8387Catalyst signed document CBOR bytes example
0 commit comments