beyondasset-issuance-encoder
v1.2.0
Published
The encoding/decoding functions for the beyondasset scheme issuance set of OP_CODES
Downloads
6
Maintainers
Readme
Issuance-Encoder
Issuance-Encoder provides the encode/decode functions between a BeyondAsset issuance Object to buffer
Installation
$ npm install beyondasset-issuance-encoder
Encode
Params:
Returns a new Buffer holding the encoded issuance.
Example:
var issuanceEncoder = require('beyondasset-issuance-encoder')
Decode
Params:
- consume - takes a consumable buffer (You can use buffer-consumer like in the example to create one)
Returns a BeyondAsset payment Object
Example:
var issuanceEncoder = require('beyondasset-issuance-encoder')
Testing
In order to test you need to install mocha globaly on your machine
$ cd /"module-path"/beyondasset-issuance-Encoder
$ mocha