Transfer-Encoder provides the encode/decode functions between a Colored Coins transfer Object to buffer
$ npm install cc-transfer-encoder
Params:
Returns a new Buffer holding the encoded transfer.
var transferEncoder = require('cc-transfer-encoder')
Params:
- consume - takes a consumable buffer (You can use buffer-consumer like in the example to create one)
Returns a Colored Coins payment Object
var transferEncoder = require('cc-transfer-encoder')
In order to test you need to install mocha globaly on your machine
$ cd /"module-path"/cc-transfer-Encoder
$ mocha