@tatumio/pushdata-bitcoin
v1.2.2
Published
encode/decode value as bitcoin OP_PUSHDATA integer
Downloads
823
Readme
pushdata-bitcoin
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)