Skip to content

Commit 1221534

Browse files
committed
add comment document
1 parent 811c4b4 commit 1221534

File tree

2 files changed

+101
-6
lines changed

2 files changed

+101
-6
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
Title: Catalyst Comment Document
3+
Category: Catalyst
4+
Status: Proposed
5+
Authors:
6+
- Steven Johnson <[email protected]>
7+
Implementors:
8+
- Catalyst Fund 14
9+
Discussions: []
10+
Created: 2024-12-29
11+
License: CC-BY-4.0
12+
---
13+
14+
## Abstract
15+
16+
## Comment Document
17+
18+
This is a document which provides a comment against a particular [Proposal Document].
19+
20+
### Specification
21+
22+
Catalysyt Comment document is a [Catalyst Signed Document],
23+
so its fully follows the structure of the [Catalyst Signed Document] specification.
24+
25+
* [`content type`](./../signed_doc/spec.md#content-type): `application/json`.
26+
[Catalyst Signed Document content] must be in [JSON] format.
27+
28+
```CDDL
29+
3 => 30
30+
```
31+
32+
* [`content encoding`](./../signed_doc/spec.md#content-encoding-optional): `"br"`.
33+
[Catalyst Signed Document content] must be [Brotli] compressed.
34+
35+
#### Metadata Fields
36+
37+
A list of used [Catalyst Signed Document protected header fields](./../signed_doc/spec.md#signed-object-fields).
38+
39+
* [`ref`](./../signed_doc/meta.md#ref-document-reference). Refence to a related [Proposal Document].
40+
* [`template`](./../signed_doc/meta.md#ref-document-reference) must be equal to `0b8424d4-ebfd-46e3-9577-1775a69d290c` value, [commemt template type](#comment-template).
41+
42+
```CDDL
43+
"template" => 37(h'0b8424d4ebfd46e395771775a69d290c')
44+
```
45+
46+
* [`reply`](./../signed_doc/meta.md#reply-reply-reference) (optional).
47+
A reference to another comment,
48+
where the comment is in reply to the referenced comment.
49+
Comments may only reply to a single other comment document.
50+
The referenced `comment` must be for the same proposal [`id`](./../signed_doc/spec.md#id),
51+
but can be for a different proposal [`ver`](./../signed_doc/spec.md#ver).
52+
53+
* [`section`](./../signed_doc/meta.md#section-section-reference) (optional).
54+
Used when the comment only applies to a specific section to the document being commented upon,
55+
and not the entire document.
56+
57+
* [`collabs`](./../signed_doc/meta.md#collabs-authorized-collaborators) (optional).
58+
59+
## Comment Template
60+
61+
This document pr provides the template structure which a Comment must be formatted to, and validated against.
62+
63+
### Specification
64+
65+
Catalysyt Comment Template document is a [Catalyst Signed Document],
66+
so its fully follows the structure of the [Catalyst Signed Document] specification.
67+
68+
* [`content type`](./../signed_doc/spec.md#content-type): `application/json`.
69+
[Catalyst Signed Document content] must be in [JSON] format.
70+
71+
```CDDL
72+
3 => 30
73+
```
74+
75+
* [`content encoding`](./../signed_doc/spec.md#content-encoding-optional): `"br"`.
76+
[Catalyst Signed Document content] must be [Brotli] compressed.
77+
78+
#### Metadata Fields
79+
80+
A list of used [Catalyst Signed Document protected header fields](./../signed_doc/spec.md#signed-object-fields).
81+
82+
* [`ref`](./../signed_doc/meta.md#ref-document-reference) (optional)
83+
* [`reply`](./../signed_doc/meta.md#reply-reply-reference) (optional)
84+
* [`section`](./../signed_doc/meta.md#section-section-reference) (optional)
85+
* [`collabs`](./../signed_doc/meta.md#collabs-authorized-collaborators) (optional)
86+
87+
## Copyright
88+
89+
This document is licensed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode).
90+
91+
[Catalyst Signed Document]: ./../signed_doc/spec.md
92+
[Catalyst Signed Document content]: ./../signed_doc/spec.md#signed-object-content
93+
[Proposal Document]: ./proposal.md
94+
[Brotli]: https://datatracker.ietf.org/doc/html/rfc7932
95+
[JSON]: https://datatracker.ietf.org/doc/html/rfc7159

docs/src/architecture/08_concepts/catalyst_docs/proposal.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ so its fully follows the structure of the [Catalyst Signed Document] specificati
3636
* [`content encoding`](./../signed_doc/spec.md#content-encoding-optional): `"br"`.
3737
[Catalyst Signed Document content] must be [Brotli] compressed.
3838

39-
#### Proposal Metadata Fields
39+
#### Metadata Fields
4040

4141
A list of used [Catalyst Signed Document protected header fields](./../signed_doc/spec.md#signed-object-fields).
4242

43-
* [`ref`](./../signed_doc/meta.md#ref-document-reference) (optional)
43+
* [`ref`](./../signed_doc/meta.md#ref-document-reference) (optional).
4444
* [`template`](./../signed_doc/meta.md#ref-document-reference) must be equal to `0ce8ab38-9258-4fbc-a62e-7faa6e58318f` value, [proposal template type](#proposal-template).
4545

4646
```CDDL
4747
"template" => 37(h'0ce8ab3892584fbca62e7faa6e58318f')
4848
```
4949

50-
* [`reply`](./../signed_doc/meta.md#reply-reply-reference) (optional)
51-
* [`section`](./../signed_doc/meta.md#section-section-reference) (optional)
52-
* [`collabs`](./../signed_doc/meta.md#collabs-authorized-collaborators) (optional)
50+
* [`reply`](./../signed_doc/meta.md#reply-reply-reference) (optional).
51+
* [`section`](./../signed_doc/meta.md#section-section-reference) (optional).
52+
* [`collabs`](./../signed_doc/meta.md#collabs-authorized-collaborators) (optional).
5353

5454
## Proposal Template
5555

@@ -70,7 +70,7 @@ so its fully follows the structure of the [Catalyst Signed Document] specificati
7070
* [`content encoding`](./../signed_doc/spec.md#content-encoding-optional): `"br"`.
7171
[Catalyst Signed Document content] must be [Brotli] compressed.
7272

73-
#### Proposal Metadata Fields
73+
#### Metadata Fields
7474

7575
A list of used [Catalyst Signed Document protected header fields](./../signed_doc/spec.md#signed-object-fields).
7676

0 commit comments

Comments
 (0)