Miss any of our Open RFC calls?Watch the recordings here! »

cc-transfer-encoder

1.1.2 • Public • Published

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

Install

npm i cc-transfer-encoder

DownloadsWeekly Downloads

10

Version

1.1.2

License

Apache-2.0

Last publish

Collaborators

  • avatar
  • avatar