solidity-cborutils

Utilities for encoding CBOR data in solidity

Usage no npm install needed!

<script type="module">
  import solidityCborutils from 'https://cdn.skypack.dev/solidity-cborutils';
</script>

README

solidity-cborutils GitHub workflow changelog

Utilities for encoding CBOR data in solidity

Install

$ git clone https://github.com/smartcontractkit/solidity-cborutils.git
$ cd solidity-cborutils
$ yarn install

Usage

The Buffer library is not intended to be moved to storage. In order to persist a Buffer in storage from memory, you must manually copy each of its attributes to storage, and back out when moving it back to memory.

Test

$ yarn test