Skip to content

About

Blockchain Commons Deterministic CBOR ("dCBOR") for TypeScript

Resources

Stars

2 stars

Watchers

2 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Proof of Concept: Blockchain Commons Deterministic CBOR ("dCBOR") for TypeScript

by Wolf McNally


This was our original proof-of-concept for dCBOR in Typescript, intended to demonstrate that dCBOR was possible in languages other than Rust.

It has been superseded by a more mature implementation at https://github.com/BlockchainCommons/bc-dcbor-ts.


dcbor is a CBOR codec that focuses on writing and parsing "deterministic" CBOR per §4.2 of RFC-8949. 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.

About

Blockchain Commons Deterministic CBOR ("dCBOR") for TypeScript

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages