Skip to content

Commit 98fe8a0

Browse files
committed
WIP.
1 parent 5c91aa4 commit 98fe8a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

draft-mcnally-deterministic-cbor.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ These are valid CBOR encodings that MUST be rejected as invalid by a dCBOR-compl
379379

380380
# Appendix B: Design Principles
381381

382+
This section is non-normative.
383+
382384
dCBOR has a single overriding goal: to facilitate *determinism*.
383385

384386
This means to ensure or facilitate, as much as possible, that semantically equivalent data items are encoded as identical byte streams.
@@ -407,7 +409,7 @@ The sections below explain the rationale for some of these choices.
407409

408410
## Why Numeric Reduction?
409411

410-
The numeric model of {{-CBOR}} provides three kinds of basic numeric types: unsigned integers (Major Type 0), negative integers (Major Type 1), and floating point numbers (Shares major Type 7 with Simple Values). Not all applications require floating point values, and those that do not are unaffected by the presence of floating point numbers in the CBOR model. However, the RFC introduces the possibility of variability in certain places. For example, §3.4.2 defines Tag 1 as "Epoch-Based Date/Time":
412+
The numeric model of {{-CBOR}} provides three kinds of basic numeric types: unsigned integers (Major Type 0), negative integers (Major Type 1), and floating point numbers (shares major Type 7 with Simple Values). Not all applications require floating point values, and those that do not are unaffected by the presence of floating point numbers in the CBOR model. However, the RFC introduces the possibility of variability in certain places. For example, §3.4.2 defines Tag 1 as "Epoch-Based Date/Time":
411413

412414
> Tag number 1 contains a numerical value counting the number of seconds from 1970-01-01T00:00Z in UTC time to the represented point in civil time.
413415
>

0 commit comments

Comments
 (0)