@@ -110,8 +110,9 @@ However, `id` uniqueness is only guaranteed on first use.
110
110
111
111
If the same ` id ` is used, by unauthorized publishers, the document is invalid.
112
112
113
- The ` id ` is a [ ULID] .
114
- It will be encoded using [ ULID CBOR Encoding] .
113
+ The ` id ` is a [ UUID] .
114
+ This identifier will be a [ CBOR] Encoded [ UUID Byte String] .
115
+ Only [ UUID] V7 is supported and used.
115
116
116
117
The first time a document is created, it will be assigned by the creator a new ` id ` which must
117
118
be well constructed.
@@ -138,12 +139,13 @@ including all otherwise legitimate publications by the same author being marked
138
139
Every document in the system will be versioned.
139
140
There can, and probably will, exist multiple versions of the same document.
140
141
141
- The ` ver ` is a [ ULID] .
142
- It will be encoded using [ ULID CBOR Encoding] .
142
+ The ` ver ` is a [ UUID] .
143
+ This identifier will be a [ CBOR] Encoded [ UUID Byte String] .
144
+ Only [ UUID] V7 is supported and used.
143
145
144
146
The initial ` ver ` assigned the first time a document is published will be identical to the [ ` id ` ] ( #document-id--id ) .
145
147
Subsequent versions will retain the same [ ` id ` ] ( #document-id--id ) and will create a new ` ver ` ,
146
- following best practice for creating a new [ ULID ] .
148
+ following best practice for creating a new [ UUID ] v7 .
147
149
148
150
#### Document Reference : ` ref `
149
151
@@ -154,13 +156,13 @@ following best practice for creating a new [ULID].
154
156
This is a reference to another document.
155
157
The purpose of the ` ref ` will vary depending on the document [ ` type ` ] ( #document-type--type ) .
156
158
157
- The ` ref ` can be either a single [ ULID ] or a [ CBOR] Array of Two [ ULID ] .
159
+ The ` ref ` can be either a single [ UUID ] or a [ CBOR] Array of Two [ UUID ] .
158
160
159
- If the ` ref ` is a single [ ULID ] , it is a reference to the document of that [ ` id ` ] ( #document-id--id ) .
161
+ If the ` ref ` is a single [ UUID ] , it is a reference to the document of that [ ` id ` ] ( #document-id--id ) .
160
162
If the ` ref ` is a [ CBOR] array, it has the form ` [<id>,<ver>] ` where:
161
163
162
- * ` <id> ` = the [ ULID ] of the referenced documents [ ` id ` ] ( #document-id--id )
163
- * ` <ver> ` = the [ ULID ] of the referenced documents [ ` ver ` ] ( #document-version--ver ) .
164
+ * ` <id> ` = the [ UUID ] of the referenced documents [ ` id ` ] ( #document-id--id )
165
+ * ` <ver> ` = the [ UUID ] of the referenced documents [ ` ver ` ] ( #document-version--ver ) .
164
166
165
167
#### Template Reference : ` template `
166
168
@@ -289,8 +291,6 @@ This document is licensed under [CC-BY-4.0](https://creativecommons.org/licenses
289
291
[ JSON Schema ] : https://json-schema.org/draft-07
290
292
[ Brotli ] : https://datatracker.ietf.org/doc/html/rfc7932
291
293
[ JSON ] : https://datatracker.ietf.org/doc/html/rfc7159
292
- [ ULID ] : https://github.com/ulid/spec
293
- [ ULID CBOR Encoding ] : https://github.com/input-output-hk/catalyst-voices/blob/main/docs/src/catalyst-standards/cbor_tags/ulid.md
294
294
[ CBOR ] : https://datatracker.ietf.org/doc/html/rfc8610
295
295
[ UUID ] : https://www.rfc-editor.org/rfc/rfc9562.html
296
296
[ JSON Path ] : https://datatracker.ietf.org/doc/html/rfc9535
0 commit comments