← Back to Glossary

ScriptSig

The ScriptSig is the part of a transaction which contains the required signatures and the script which unlocks a UTXO for spending.

The ScriptSig is the part of a transaction which contains the required signatures and the script which unlocks a UTXO for spending. A ScriptSig pairs with the ScriptPubKey to form a complete and valid script. The ScriptSig is only present in legacy Bitcoin transactions.

In SegWit transactions, the ScriptSig is removed from the transaction body and called the Witness Script. When bitcoin is sent, it is locked using a ScriptPubKey. The ScriptPubKey can be thought of as a riddle, solvable only by the owner of the correct private keys.

To spend this bitcoin, the owner must publish the answer to the riddle by signing the transaction with his keys. The published answer to the riddle is the ScriptSig. Every node verifies that the ScriptSig matches the ScriptPubKey for each transaction they receive, ensuring that no invalid transactions are added to the blockchain.

One of the major changes implemented in SegWit was the relocation of the ScriptSig from the legacy transaction body into the Witness portion.

ScriptSig is a Bitcoin protocol specification that defines technical standards for how Bitcoin software operates. Onramp's Bitcoin glossary provides detailed educational resources on ScriptSig and other protocol-level concepts to help investors understand the technology underpinning their Bitcoin holdings.

Frequently Asked Questions

What is ScriptSig?

ScriptSig is a technical standard in the Bitcoin protocol that specifies how certain operations or data structures should be implemented. It helps ensure interoperability between different Bitcoin software implementations.

Why is ScriptSig important for Bitcoin?

ScriptSig improves Bitcoin's functionality, security, or efficiency. Technical standards like this ensure that all participants in the Bitcoin network follow consistent rules, maintaining network consensus.

How does ScriptSig affect Bitcoin investors?

While ScriptSig operates at the protocol level, Onramp ensures that clients benefit from these technical improvements through secure, up-to-date infrastructure for Bitcoin custody and transactions.

Multi-Institution Custody

Are you ready?

The best security available for your Bitcoin without the technical burden. It’s time to upgrade.

Sign up