You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
'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;
|