Socket
Book a DemoInstallSign in
Socket

cc-issuance-encoder

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-issuance-encoder

The encoding/decoding functions for the colored-coins scheme issuance set of OP_CODES

1.1.1
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

Issuance-Encoder

Build Status Coverage Status npm version Slack Status

js-standard-style

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

Installation

$ npm install cc-issuance-encoder

Encode

Params:



Returns a new Buffer holding the encoded issuance.

Example:
var issuanceEncoder = require('cc-issuance-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 issuanceEncoder = require('cc-issuance-encoder')

Testing

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

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

License

Apache-2.0

Keywords

colored coins

FAQs

Package last updated on 13 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.