bool input_has_pubkey(const operation_stack& ops) { return ops.size() == 2 && ops[0].code == opcode::special && ops[1].code == opcode::special; }
bool script::matches_template(operation_stack templ) const { return templ.size() == 0; }