Skip to content

The encoding/decoding functions for the DigiAssets scheme Issuance set of OP_CODES

Notifications You must be signed in to change notification settings

DigiByte-Core/Issuance-Encoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issuance-Encoder

Build Status Coverage Status npm version Slack Status

js-standard-style

Issuance-Encoder provides the encode/decode functions between a DigiAsset issuance Object to buffer

Installation

$ npm install digiasset-issuance-encoder

Encode

Params:

Returns a new Buffer holding the encoded issuance.

Example:
var issuanceEncoder = require('digiasset-issuance-encoder')

Decode

Params:

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

Returns a DigiAsset payment Object

Example:
var issuanceEncoder = require('digiasset-issuance-encoder')

Testing

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

$ cd /"module-path"/digiasset-issuance-Encoder
$ mocha

License

Apache-2.0

About

The encoding/decoding functions for the DigiAssets scheme Issuance set of OP_CODES

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%