UNPKG

@dip1059/bitcoinjs-lib

Version:

bitcoinjs-lib with some other btc based network support. Cloned from https://github.com/junderw/bitcoinjs-lib/tree/cashv5

18 lines (17 loc) 443 B
'use strict'; // OP_0 {scriptHash} Object.defineProperty(exports, '__esModule', { value: true }); const bscript = require('../../script'); const script_1 = require('../../script'); function check(script) { const buffer = bscript.compile(script); return ( buffer.length === 34 && buffer[0] === script_1.OPS.OP_0 && buffer[1] === 0x20 ); } exports.check = check; check.toJSON = () => { return 'Witness scriptHash output'; };