@tatumio/pushdata-bitcoin

encode/decode value as bitcoin OP_PUSHDATA integer

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@tatumio/pushdata-bitcoin
101.2.2a year agoa year agoMinified + gzip package size for @tatumio/pushdata-bitcoin in KB

Readme

pushdata-bitcoin
NPM Package Build Status js-standard-style
Encode/decode value as bitcoin OP_PUSHDATA integer

Example

var pushdata = require('pushdata-bitcoin')

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

pushdata.encode(buffer, i)

LICENSE MIT