Skip to content

Latest commit

 

History

History

README.md

@atproto/lex-cbor

CBOR (DRISL) encoding and decoding for the AT Protocol data model, as used for repository storage and signing.

import { decode, encode, cidForLex } from '@atproto/lex-cbor'

const bytes = encode(someLexValue)
const value = decode(bytes)
const cid = await cidForLex(someLexValue)

Part of the @atproto/lex SDK family. Unlike the JSON codec, this package is not re-exported by @atproto/lex and must be installed directly.

License

This project is dual-licensed under MIT and Apache 2.0 terms:

Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.