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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Encode/decode value as bitcoin OP_PUSHDATA
integer
pushdata = require('pushdata-bitcoin')
i = 120
buffer = new Buffer(pushdata.encodingLength(i))
data.encode(buffer, i)