bitcoinjs/minimaldata

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

minimaldata

NPM Package Build Status js-standard-style

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

Example
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
LICENSE MIT

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.