bitcoinjs-lib/src/templates/nulldata.js

16 lines
429 B
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// OP_RETURN {data}
const bscript = require("../script");
const OPS = bscript.OPS;
function check(script) {
const buffer = bscript.compile(script);
return buffer.length > 1 && buffer[0] === OPS.OP_RETURN;
}
exports.check = check;
check.toJSON = function () {
return 'null data output';
};
const output = { check };
exports.output = output;