Skip to definition

Transactions & network Advanced

Transaction Witness Data

In brief SegWit input data, such as signatures and scripts, that nodes validate as part of the transaction.

Also referred to as: transaction witness · witness data · witness stack · SegWit witness

Full explanation

Data supplied with a SegWit transaction input to satisfy its spending conditions, such as signatures, public keys or a witness script. It is serialized separately from the transaction's base data but still validated by nodes and committed to by the block. It is not a private-key backup.

For exampleA P2WPKH spend carries its signature and public key in the input's witness, while its ordinary unlocking script is empty for the native form.

Common mistakeThinking separate serialization makes witness data optional, unvalidated or stored outside the blockchain.

Put it into practice: Explore transparent transaction examples →

Primary sources: Litecoin Core: witness transaction serialization BIP 141: witness data and block commitment

Definition checked:

Quick answers about Transaction Witness Data

What does Transaction Witness Data mean in Litecoin?
SegWit input data, such as signatures and scripts, that nodes validate as part of the transaction. Data supplied with a SegWit transaction input to satisfy its spending conditions, such as signatures, public keys or a witness script. It is serialized separately from the transaction's base data but still validated by nodes and committed to by the block. It is not a private-key backup.
What is a common mistake with Transaction Witness Data?
Thinking separate serialization makes witness data optional, unvalidated or stored outside the blockchain.
How is Transaction Witness Data applied in practice?
A P2WPKH spend carries its signature and public key in the input's witness, while its ordinary unlocking script is empty for the native form. You can explore this hands-on with our Explore transparent transaction examples.
Jarosław Wasiński
Editor-in-chief · Financial markets and Litecoin education

Editor-in-chief of Litecoin.watch and founder of MyBank.pl. His published work covers foreign exchange, financial education and Litecoin. On Litecoin.watch, his remit includes editorial direction, source transparency and the practical guides and research published by the site.

Background, selected work and editorial responsibility →

Founder of MyBank.pl Financial education and market analysis Named editorial responsibility