What is the content of ScriptPubKey for P2WPKH?
Master bitcoin book 2end edition says the following (link):
Example P2WPKH output script
0 ab68025513c3dbd2f7b92a94e0581f5d50f654e7
In programming Bitcoin by Jimmy Song, it says the following:
The ScriptPubKey for p2wpkh is OP_0 <20-byte hash>.
It also provides the following image:
Additionally, when Jimmy Song is checking if the scriptPubKey is of P2WPKH type, he is using the following code:
So my question is: Where is OP_PUSHBYTES_20 here? Okay, maybe in the examples we can omit it and just say OP_0 20-byte hash, but how can we omit it in a program checking if the script is P2WPKH as Jimmy Song did?
I thought that I missed something, so I went into Bitcoin block explorer to find any P2WPKH scriptPubKey and I found it with OP_PUSHBYTES_20. Here is the link for it.
So, should we consider the P2WPKH output is: OP_0 OP_PUSHBYTES_20 <20-byte hash> and not just OP_0 <20-byte hash>. Does it mean Jimmy Song made a mistake in his program?

