// {pubKey} OP_CHECKSIG import * as bscript from '../../script' import { OPS } from '../../script' export function check (script: Buffer | Array): boolean { const chunks = >bscript.decompile(script) return chunks.length === 2 && bscript.isCanonicalPubKey(chunks[0]) && chunks[1] === OPS.OP_CHECKSIG } check.toJSON = function () { return 'pubKey output' }