@m-doc/cbor
v0.1.0
Published
mdl implementation in typescript
Downloads
49
Readme
CBOR encoder/decoder for mdl
This package provides a CBOR encoder/decoder for the mdoc/mdl(ISO/IEC 18013-5).
Supported Platforms
- Node.js
- Browser
- React Native
Installation
npm install @m-doc/cboryarn install @m-doc/cborpnpm install @m-doc/cborUsage
Encode
import { CBOR } from '@m-doc/cbor';
const encodedData = CBOR.encode('hello');
console.log(encodedData);Decode
import { CBOR } from '@m-doc/cbor';
const decodedData = CBOR.decode(encodedData);
console.log(decodedData);License
Apache-2.0
More Information
See the original Repo: https://github.com/openwallet-foundation-labs/mdl-js
