https://github.com/smartcontractkit/solidity-cborutils
A library for encoding CBOR in Solidity.
https://github.com/smartcontractkit/solidity-cborutils
Last synced: 10 months ago
JSON representation
A library for encoding CBOR in Solidity.
- Host: GitHub
- URL: https://github.com/smartcontractkit/solidity-cborutils
- Owner: smartcontractkit
- License: mit
- Created: 2018-04-06T18:21:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T21:33:38.000Z (over 2 years ago)
- Last Synced: 2024-12-11T13:52:13.955Z (over 1 year ago)
- Language: Solidity
- Homepage:
- Size: 1.32 MB
- Stars: 64
- Watchers: 75
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# solidity-cborutils [](https://github.com/smartcontractkit/solidity-cborutils/actions?query=workflow%3ACI)
Utilities for encoding [CBOR](http://cbor.io/) data in solidity
## Install
```bash
$ 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
```bash
$ yarn test
```