bitcoinjs/pushdata-bitcoin

Name: pushdata-bitcoin

Owner: BitcoinJS

Description: encode/decode number as bitcoin pushdata integer

Created: 2016-12-17 13:41:32.0

Updated: 2018-02-07 05:47:05.0

Pushed: 2018-02-07 05:36:23.0

Homepage: null

Size: 4

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

pushdata-bitcoin

NPM Package Build Status js-standard-style

Encode/decode value as bitcoin OP_PUSHDATA integer

Example
pushdata = require('pushdata-bitcoin')

i = 120
buffer = new Buffer(pushdata.encodingLength(i))

data.encode(buffer, i)
LICENSE MIT

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.