Skip to content

Commit d197ccf

Browse files
authored
Merge pull request #4 from cabo/nits-housekeeping
Nits housekeeping
2 parents 74182b9 + 0ca0990 commit d197ccf

File tree

2 files changed

+41
-40
lines changed

2 files changed

+41
-40
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
TEXT_PAGINATION := true
12
LIBDIR := lib
23
include $(LIBDIR)/main.mk
34

draft-mcnally-deterministic-cbor.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
v: 3
3+
24
title: "dCBOR: A Deterministic CBOR Application Profile"
35
abbrev: "dCBOR"
46
docname: draft-mcnally-deterministic-cbor-latest
@@ -10,59 +12,64 @@ area: Applications and Real-Time
1012
workgroup: Network Working Group
1113
keyword: Internet-Draft
1214

13-
stand_alone: yes
14-
smart_quotes: no
1515
pi: [toc, sortrefs, symrefs]
1616

17+
venue:
18+
# group: "CBOR Maintenance and Extensions"
19+
20+
github: BlockchainCommons/WIPs-IETF-draft-deterministic-cbor
21+
1722
author:
1823
-
19-
ins: W. McNally
2024
name: Wolf McNally
2125
organization: Blockchain Commons
2226
2327
-
24-
ins: C. Allen
2528
name: Christopher Allen
2629
organization: Blockchain Commons
2730
2831
-
29-
ins: C. Bormann
3032
name: Carsten Bormann
3133
organization: Universität Bremen TZI
3234
3335

3436
normative:
3537
RFC8949: CBOR
3638
RFC8610: CDDL
37-
RFC7942: RFC7942
38-
CDE:
39-
title: "Bormann, C., \"CBOR Common Deterministic Encoding (CDE)\""
40-
target: https://datatracker.ietf.org/doc/draft-ietf-cbor-cde/
41-
IANACDDL:
42-
title: "Concise Data Definition Language (CDDL)"
43-
target: https://www.iana.org/assignments/cddl
39+
CDE: I-D.draft-ietf-cbor-cde
40+
IANACDDL: IANA.cddl
4441

4542
informative:
4643
BCSwiftDCBOR:
47-
title: "McNally, W., \"Deterministic CBOR (dCBOR) for Swift.\""
44+
author:
45+
name: Wolf McNally
46+
title: "Deterministic CBOR (dCBOR) for Swift."
4847
target: https://github.com/BlockchainCommons/BCSwiftDCBOR
4948
BCRustDCBOR:
50-
title: "McNally, W., \"Deterministic CBOR (dCBOR) for Rust.\""
49+
author:
50+
name: Wolf McNally
51+
title: "Deterministic CBOR (dCBOR) for Rust."
5152
target: https://github.com/BlockchainCommons/bc-dcbor-rust
5253
BCTypescriptDCBOR:
53-
title: "McNally, W., \"Deterministic CBOR (dCBOR) for Typescript.\""
54+
author:
55+
name: Wolf McNally
56+
title: "Deterministic CBOR (dCBOR) for Typescript."
5457
target: https://github.com/BlockchainCommons/bc-dcbor-ts
55-
GordianEnvelope:
56-
title: "McNally, W., \"Gordian Envelope\""
57-
target: https://www.ietf.org/archive/id/draft-mcnally-envelope-05.html
58+
GordianEnvelope: I-D.mcnally-envelope
5859
cbor-deterministic:
59-
title: "Bormann, C., \"cbor-deterministic gem\""
60+
author:
61+
name: Carsten Bormann
62+
title: "cbor-deterministic gem"
6063
target: https://github.com/cabo/cbor-deterministic
6164
cbor-diag:
62-
title: "Bormann, C., \"CBOR diagnostic utilities\""
65+
author:
66+
name: Carsten Bormann
67+
title: "CBOR diagnostic utilities"
6368
target: https://github.com/cabo/cbor-diag
6469
cbor-dcbor:
65-
title: "Bormann, C., \"PoC of the McNally/Allen dCBOR application-level CBOR representation rules\""
70+
author:
71+
name: Carsten Bormann
72+
title: "PoC of the McNally/Allen dCBOR application-level CBOR representation rules"
6673
target: https://github.com/cabo/cbor-dcbor
6774

6875
--- abstract
@@ -110,7 +117,7 @@ CBOR {{-CBOR}} defines maps with duplicate keys as invalid, but leaves how to ha
110117

111118
dCBOR encoders:
112119

113-
1. MUST NOT emit CBOR maps that contains duplicate keys.
120+
1. MUST NOT emit CBOR maps that contain duplicate keys.
114121

115122
dCBOR decoders:
116123

@@ -146,7 +153,7 @@ This also means that the three representations of a zero number in CBOR (`0`, `0
146153

147154
Note that this reduction means some valid CDE/CBOR maps are not valid dCBOR maps, as numeric reduction can result in duplicate keys, for example, this is an invalid dCBOR map:
148155

149-
~~~
156+
~~~ cbor-diag
150157
{
151158
10: "ten",
152159
10.0: "floating ten"
@@ -182,29 +189,21 @@ The control operators `.dcbor` and `.dcborseq` are exactly like `.cde` and `.cde
182189

183190
For example, the normative comment in Section 3 of {{GordianEnvelope}}:
184191

185-
~~~
192+
~~~ cddl
186193
leaf = #6.24(bytes) ; MUST be dCBOR
187194
~~~
188195

189196
...can now be formalized as:
190197

191-
~~~
198+
~~~ cddl
192199
leaf = #6.24(bytes .dcbor any)
193200
~~~
194201

195-
# Reference Implementations
196-
197-
This section is to be removed before publishing as an RFC.
198-
199-
(Boilerplate as per Section 2.1 of {{RFC7942}}:)
200-
201-
This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in {{RFC7942}}. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.
202-
203-
According to {{RFC7942}}, "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit".
204-
205-
## Gordian dCBOR Application Profile
202+
# Implementation Status
203+
{:removeinrfc}
204+
{::boilerplate rfc7942info}
206205

207-
### Swift
206+
## Swift
208207

209208
- Description: Single-purpose dCBOR reference implementation for Swift.
210209
- Organization: Blockchain Commons
@@ -215,7 +214,7 @@ According to {{RFC7942}}, "this will allow reviewers and working groups to assig
215214
- Testing: Unit tests
216215
- Licensing: BSD-2-Clause-Patent
217216

218-
### Rust
217+
## Rust
219218

220219
- Description: Single-purpose dCBOR reference implementation for Rust.
221220
- Organization: Blockchain Commons
@@ -226,7 +225,7 @@ According to {{RFC7942}}, "this will allow reviewers and working groups to assig
226225
- Testing: Unit tests
227226
- Licensing: BSD-2-Clause-Patent
228227

229-
### TypeScript
228+
## TypeScript
230229

231230
- Description: Single-purpose dCBOR reference implementation for TypeScript.
232231
- Organization: Blockchain Commons
@@ -237,7 +236,7 @@ According to {{RFC7942}}, "this will allow reviewers and working groups to assig
237236
- Testing: Unit tests
238237
- Licensing: BSD-2-Clause-Patent
239238

240-
### Ruby
239+
## Ruby
241240

242241
- Implementation Location: [cbor-dcbor]
243242
- Primary Maintainer: Carsten Bormann
@@ -262,6 +261,7 @@ This document requests IANA to register the contents of Table 1 into the registr
262261
|:-----------|:----------|
263262
| .dcbor | \[RFCXXXX\] |
264263
| .dcborseq | \[RFCXXXX\] |
264+
{: title="CDDL Control Operators for dCBOR"}
265265

266266
--- back
267267

0 commit comments

Comments
 (0)