Name: minimaldata
Owner: BitcoinJS
Description: A module to check bitcoin policy: SCRIPT_VERIFY_MINIMALDATA
Created: 2016-08-31 05:54:21.0
Updated: 2017-08-17 04:30:04.0
Pushed: 2016-12-17 14:09:08.0
Homepage: null
Size: 17
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Following BIP62.3, this module validates that a script uses only minimal data pushes.
minimaldata = require('minimaldata')
P_PUSHDATA4, 1 byte
script = new Buffer('4e0100000000', 'hex')
ole.log(minimaldata(script))
> false
pt = new Buffer('0101', 'hex')
ole.log(minimaldata(script))
> true