@asoltys/pushdata-bitcoin
v1.1.4
Published
encode/decode value as bitcoin OP_PUSHDATA integer
Downloads
16
Maintainers
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)