https://github.com/blockchaincommons/bc-dcbor-ts
Blockchain Commons Deterministic CBOR ("dCBOR") for TypeScript
https://github.com/blockchaincommons/bc-dcbor-ts
Last synced: 8 months ago
JSON representation
Blockchain Commons Deterministic CBOR ("dCBOR") for TypeScript
- Host: GitHub
- URL: https://github.com/blockchaincommons/bc-dcbor-ts
- Owner: BlockchainCommons
- Created: 2023-06-13T04:55:46.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T01:52:38.000Z (over 2 years ago)
- Last Synced: 2025-05-14T16:17:29.413Z (11 months ago)
- Language: TypeScript
- Size: 76.2 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchain Commons Deterministic CBOR ("dCBOR") for TypeScript
### _by Wolf McNally_
---
`dcbor` is a [CBOR](https://cbor.io) codec that focuses on writing and parsing "deterministic" CBOR per [§4.2 of RFC-8949](https://www.rfc-editor.org/rfc/rfc8949.html#name-deterministically-encoded-c). It does not support parts of the spec forbidden by deterministic CBOR (such as indefinite length arrays and maps). It is strict in both what it writes and reads: in particular it will return decoding errors if variable-length integers are not encoded in their minimal form, or CBOR map keys are not in lexicographic order, or there is extra data past the end of the decoded CBOR item.
## Specification
The current specification of the norms and practices guiding the creation of this implementation are currently found in this IETF Internet Draft: [draft-mcnally-deterministic-cbor](https://datatracker.ietf.org/doc/draft-mcnally-deterministic-cbor/).