2019-01-04 18:33:02 +09:00
|
|
|
"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);
|
2019-03-03 23:31:17 +09:00
|
|
|
return buffer.length > 1 && buffer[0] === OPS.OP_RETURN;
|
2019-01-04 18:33:02 +09:00
|
|
|
}
|
|
|
|
exports.check = check;
|
2019-03-03 23:31:17 +09:00
|
|
|
check.toJSON = function () {
|
|
|
|
return 'null data output';
|
|
|
|
};
|
2019-01-04 18:33:02 +09:00
|
|
|
const output = { check };
|
|
|
|
exports.output = output;
|