0.2.1 • Published 4 years ago

@keyring/cbor-plugin v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@keyring/cbor-plugin

This plugin allows you to easily insert CBOR encoded data into a transaction. When using this plugin a cbor method is added to the Keyring Transaction class.

Usage

const BSV = require('@keyring/bsv');
const cborPlugin = require('@keyring/cbor-plugin');

const Transaction = BSV.Transaction;
Transaction.use(new cborPlugin());

let tx = new Transaction();
tx.cbor({ hello: 'world' });
console.log('data', tx.data()[0]);
0.2.1

4 years ago

0.2.0

4 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago