minimaldata
A module to check bitcoin policy: SCRIPT_VERIFY_MINIMALDATA
Last updated 4 years ago by dcousens .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install minimaldata 
SYNC missed versions from official npm registry.

minimaldata

NPM Package Build Status js-standard-style

Following BIP62.3, this module validates that a script uses only minimal data pushes.

Example

var minimaldata = require('minimaldata')

// OP_PUSHDATA4, 1 byte
var script = new Buffer('4e0100000000', 'hex')
console.log(minimaldata(script))
// => false

script = new Buffer('0101', 'hex')
console.log(minimaldata(script))
// => true

LICENSE MIT

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

2 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |