@keyring/msgpack-plugin
Plugin for storing data in a transaction with msgpack encoding
Last updated a year ago by hexorx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @keyring/msgpack-plugin 
SYNC missed versions from official npm registry.

@keyring/msgpack-plugin

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

Usage

const BSV = require('@keyring/bsv');
const msgPackPlugin = require('@keyring/msgpack-plugin');

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

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

Current Tags

  • 0.2.1                                ...           latest (a year ago)

9 Versions

  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |