|
| 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 | +Catalyst Comment document is a [Catalyst Signed Document], |
| 23 | +so its fully follows the structure of the [Catalyst Signed Document] specification. |
| 24 | + |
| 25 | +#### Metadata Fields |
| 26 | + |
| 27 | +A list of used [Catalyst Signed Document protected header fields](./../signed_doc/spec.md#signed-object-fields). |
| 28 | + |
| 29 | +* [`type`](./../signed_doc/spec.md#type): `b679ded3-0e7c-41ba-89f8-da62a17898ea` [UUID] value. |
| 30 | + |
| 31 | + ```CDDL |
| 32 | + "type" => 37(h'b679ded30e7c41ba89f8da62a17898ea') |
| 33 | + ``` |
| 34 | + |
| 35 | +* [`content type`](./../signed_doc/spec.md#content-type): `application/json`. |
| 36 | + [Catalyst Signed Document content] must be in [JSON] format. |
| 37 | + |
| 38 | + ```CDDL |
| 39 | + 3 => 30 |
| 40 | + ``` |
| 41 | + |
| 42 | +* [`content encoding`](./../signed_doc/spec.md#content-encoding-optional): |
| 43 | + [Catalyst Signed Document content] must be [Brotli] compressed. |
| 44 | + |
| 45 | + ```CDDL |
| 46 | + "content-type" => "br" |
| 47 | + ``` |
| 48 | + |
| 49 | +* [`ref`](./../signed_doc/meta.md#ref-document-reference). |
| 50 | + Reference to a related [Proposal Document]. |
| 51 | +* [`template`](./../signed_doc/meta.md#ref-document-reference) must be equal to `0b8424d4-ebfd-46e3-9577-1775a69d290c` value, |
| 52 | + [comment template type](#comment-template). |
| 53 | + |
| 54 | + ```CDDL |
| 55 | + "template" => 37(h'0b8424d4ebfd46e395771775a69d290c') |
| 56 | + ``` |
| 57 | + |
| 58 | +* [`reply`](./../signed_doc/meta.md#reply-reply-reference) (optional). |
| 59 | + A reference to another comment, |
| 60 | + where the comment is in reply to the referenced comment. |
| 61 | + Comments may only reply to a single other comment document. |
| 62 | + The referenced `comment` must be for the same proposal [`id`](./../signed_doc/spec.md#id), |
| 63 | + but can be for a different proposal [`ver`](./../signed_doc/spec.md#ver). |
| 64 | + |
| 65 | +* [`section`](./../signed_doc/meta.md#section-section-reference) (optional). |
| 66 | + Used when the comment only applies to a specific section to the document being commented upon, |
| 67 | + and not the entire document. |
| 68 | + |
| 69 | +#### Content format |
| 70 | + |
| 71 | +TODO |
| 72 | + |
| 73 | +## Comment Template |
| 74 | + |
| 75 | +This document pr provides the template structure which a Comment must be formatted to, and validated against. |
| 76 | + |
| 77 | +### Specification |
| 78 | + |
| 79 | +Catalyst Comment Template document is a [Catalyst Signed Document], |
| 80 | +so its fully follows the structure of the [Catalyst Signed Document] specification. |
| 81 | + |
| 82 | +#### Metadata Fields |
| 83 | + |
| 84 | +A list of used [Catalyst Signed Document protected header fields](./../signed_doc/spec.md#signed-object-fields). |
| 85 | + |
| 86 | +* [`type`](./../signed_doc/spec.md#type): `0b8424d4-ebfd-46e3-9577-1775a69d290c` [UUID] value. |
| 87 | + |
| 88 | + ```CDDL |
| 89 | + "type" => 37(h'0b8424d4ebfd46e395771775a69d290c') |
| 90 | + ``` |
| 91 | + |
| 92 | +* [`content type`](./../signed_doc/spec.md#content-type): `application/json`. |
| 93 | + [Catalyst Signed Document content] must be in [JSON] format. |
| 94 | + |
| 95 | + ```CDDL |
| 96 | + 3 => 30 |
| 97 | + ``` |
| 98 | + |
| 99 | +* [`content encoding`](./../signed_doc/spec.md#content-encoding-optional): |
| 100 | + [Catalyst Signed Document content] must be [Brotli] compressed. |
| 101 | + |
| 102 | + ```CDDL |
| 103 | + "content-type" => "br" |
| 104 | + ``` |
| 105 | + |
| 106 | +#### Content format |
| 107 | + |
| 108 | +TODO |
| 109 | + |
| 110 | +## Copyright |
| 111 | + |
| 112 | +This document is licensed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode). |
| 113 | + |
| 114 | +[Catalyst Signed Document]: ./../signed_doc/spec.md |
| 115 | +[Catalyst Signed Document content]: ./../signed_doc/spec.md#signed-object-content |
| 116 | +[Proposal Document]: ./proposal.md |
| 117 | +[Brotli]: https://datatracker.ietf.org/doc/html/rfc7932 |
| 118 | +[JSON]: https://datatracker.ietf.org/doc/html/rfc7159 |
| 119 | +[UUID]: https://www.rfc-editor.org/rfc/rfc9562.html |
0 commit comments