beyondasset-transfer-encoder
The encoding/decoding functions for the beyondasset scheme transfer set of OP_CODES
Last updated 7 months ago by tech1k .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install beyondasset-transfer-encoder 
SYNC missed versions from official npm registry.

Transfer-Encoder

Build Status Coverage Status npm version Slack Status

js-standard-style

Transfer-Encoder provides the encode/decode functions between a Colored Coins transfer Object to buffer

Installation

$ npm install cc-transfer-encoder

Encode

Params:



Returns a new Buffer holding the encoded transfer.

Example:
var transferEncoder = require('cc-transfer-encoder')


Decode

Params:

  • consume - takes a consumable buffer (You can use buffer-consumer like in the example to create one)

Returns a Colored Coins payment Object

Example:
var transferEncoder = require('cc-transfer-encoder')

Testing

In order to test you need to install mocha globaly on your machine

$ cd /"module-path"/cc-transfer-Encoder
$ mocha

License

Apache-2.0

Current Tags

  • 1.2.0                                ...           latest (7 months ago)

1 Versions

  • 1.2.0                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |