Script Witness
The Script Witness contains the signatures and public keys, which together unlock bitcoin sent in a SegWit transaction.
The Script Witness contains the signatures and public keys, which together unlock bitcoin sent in a SegWit transaction. The Script Witness is similar to the ScriptSig of a legacy transaction, except the Script Witness resides at a different location than the ScriptSig within a transaction. Each SegWit input has its own Script Witness, and all Script Witnesses comprise the Witness field.
The Segregated Witness (SegWit) upgrade introduced the Witness field, which holds the Script Witnesses in order to solve the issue of malleability. This prevents a change to a signature from affecting the txid after signing, an issue which affected legacy transactions.
The Script Witness should not be confused with the Witness Script. The Script Witness contains the Witness data of any SegWit input. In fact, the Script Witness is not a form of Script; it is simply data used by the script.
On the other hand, the Witness Script is the script which defines the spending conditions of a P2WSH input, and the Witness Script is a form of Script.
Script Witness is a Bitcoin protocol specification that defines technical standards for how Bitcoin software operates. Onramp's Bitcoin glossary provides detailed educational resources on Script Witness and other protocol-level concepts to help investors understand the technology underpinning their Bitcoin holdings.
Frequently Asked Questions
What is Script Witness?
Script Witness 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 Script Witness important for Bitcoin?
Script Witness 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 Script Witness affect Bitcoin investors?
While Script Witness 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.
