Please explain the difference between a scriptPubKey and a P2SH address.
Some technical questions will ask you to compare two terms. The best way to structure your answer for this type of question is to first define each term. You then can compare their features or functions, noting any similarities or differences. Make sure to keep your answer short and to the point. The interviewer may ask a follow-up question if they need additional information.
"A scriptPubKey, also known as a locking script, is a decryption key found in transaction output. A P2SH address is another type of encryption mechanism. It uses a hash to unlock the script and requires the transaction to contain a matching hash. While both of these or security measures involving locking scripts, they function differently."
