15 lines
417 B
JavaScript
15 lines
417 B
JavaScript
'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 = () => {
|
|
return 'null data output';
|
|
};
|
|
const output = { check };
|
|
exports.output = output;
|