PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-lib/src/templates/pubkeyhash
Просмотр файла: input.ts
// {signature} {pubKey}
import { Stack } from '../../';
import { script as bscript } from '../../';
export function check(script: Buffer | Stack): boolean {
const chunks = bscript.decompile(script) as Stack;
return (
chunks.length === 2 &&
bscript.isCanonicalScriptSignature(chunks[0] as Buffer) &&
bscript.isCanonicalPubKey(chunks[1] as Buffer)
);
}
check.toJSON = (): string => {
return 'pubKeyHash input';
};
Выполнить команду
Для локальной разработки. Не используйте в интернете!