digiasset-transfer-encoder
v1.3.0
Published
The encoding/decoding functions for the digiasset scheme transfer set of OP_CODES
Downloads
12
Maintainers
Readme
Transfer-Encoder
Transfer-Encoder provides the encode/decode functions between a Colored Coins transfer Object to buffer
Installation
$ npm install digiasset-transfer-encoder
Encode
Params:
Returns a new Buffer holding the encoded transfer.
Example:
var transferEncoder = require('digiasset-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('digiasset-transfer-encoder')
Testing
In order to test you need to install mocha globaly on your machine
$ cd /"module-path"/digiasset-transfer-Encoder
$ mocha