Skip to main content

What Two Main Components Does a Typical Scriptsig Contain?

A typical scriptSig, used to unlock a P2PKH output, contains two main components. The first is the digital signature, created by the private key owner, which authorizes the transaction.

The second is the public key corresponding to the private key used for signing. The scriptPubKey uses the public key to verify the signature and ensure the funds are being spent by the rightful owner.

How Does the Private Key Relate to the Public Key in ECDSA?
How Does a Public Key Relate to a Private Key?
What Is the Relationship between a Public Key and a Private Key in a Cryptographic Pair?
How Does a Signature Prove Ownership of Funds without Revealing the Private Key?