PHP WebShell

Текущая директория: /opt/BitGoJS/modules/utxo-lib/src/templates

Просмотр файла: nulldata.ts

// OP_RETURN {data}
import { script as bscript } from '../';
import { opcodes } from '../';

export function check(script: Buffer | Array<number | Buffer>): boolean {
  const buffer = bscript.compile(script);

  return buffer.length > 1 && buffer[0] === opcodes.OP_RETURN;
}
check.toJSON = (): string => {
  return 'null data output';
};

const output = { check };

export { output };

Выполнить команду


Для локальной разработки. Не используйте в интернете!