Skip to content

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

License

Notifications You must be signed in to change notification settings

inbitcoin/Transfer-Encoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transfer-Encoder

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

This software is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%