@psf/pushdata-bitcoin
v1.2.2
Published
encode/decode value as bitcoin OP_PUSHDATA integer
Downloads
63,679
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)