diff --git a/txscript/opcode.go b/txscript/opcode.go index 770e5b47..e2170e65 100644 --- a/txscript/opcode.go +++ b/txscript/opcode.go @@ -1996,6 +1996,10 @@ func opcodeCheckSig(op *opcode, data []byte, vm *Engine) error { // This only applies if tapscript verification isn't active, as this // check is done within the sighash itself. if vm.taprootCtx == nil && len(fullSigBytes) < 1 { + if err := vm.checkPubKeyEncoding(pkBytes); err != nil { + return err + } + vm.dstack.PushBool(false) return nil }