If I want the output script to look like: <pubKey> OP_CHECKSIG
By looking at the code I see no way if doing it.
Is there a way?
Thanks, Sergio.
I don't know what you mean by "is there a way to do it?" Yes, it's a valid script. In fact, it used to be the standard script for coinbase transactions: miners would actually use the script instead of the hash160 form for the generation output. I don't know why, but that's what showed up in
this diagram because that's what all coinbases looked like when I made the diagram (two years ago).
As for whether it's standard, I don't know. It didn't matter back then because it didn't need to propagate. It was only used by miners for their own reward, so the only person that needed to see it before it showed up in a block was themselves. So propagation was irrelevant, as long as it was valid.
I wonder if the general perception that "hidden" public keys is a more long-term viable security position, has something to do with it (i.e. in case those coins aren't moved for the next 30 years, then they don't have to worry about QCs).