What if I had a scriptPubKey of
<pubKey>OP_CHECKSIG
And an scriptSig of
<sig>
Question
Would that work in the standard client?
Why do we need to check the hash?
The only possible reason I could come up with is that it makes a DDOS much more difficult since people aren't flooding the network with invalid signatures that eats up the CPU, and a hash is relatively inexpensive.
If the explanation I have is correct, is it documented anywhere?
The wiki says that that the pay to pub key hash is to prevent a break in the ECDSA algorithm, but I wonder what the real answer might be.