<p>From the perspective of new post-segwit nodes, the witness data <strong>is</strong> part of the transaction data. It is serialized in a new field, after all the transaction outputs, before the locktime field.</p>
<p>However, this field is stripped out before relaying to old pre-segwit nodes. So from the perspective of those old nodes, the witness data isn't just external - it just doesn't exist. They don't care about the witness data, as to them, these outputs are the equivalent of &quot;True&quot;: anyone can spend them without any signatures.</p>

CC BY-SA 4.0
2022-06-23T12:38:38.000Z
2022-06-23T12:38:38.000Z
Pieter Wuille
<p>If i'm correct, i am pretty sure that signature data such as the <code>scriptsigsize</code>
and <code>scriptsig</code> is stored outside the Tx_Data of a Bitcoin transaction. But then where is it stored? Is it in the block or is it somehow connected to the transaction-data?</p>
<p>Also, how is it possible that this Bitcoin included in the transaction can be unlocked if the signature data is external from the transaction?</p>

<transactions><block><script><segregated-witness><signature>
Where Is Signature Data Stored In Post-SegWit Transactions?
Jamo
# Where Is Signature Data Stored In Post-SegWit Transactions?

(Asked by: username_0 on 2022-06-23)

If i'm correct, i am pretty sure that signature data such as the `scriptsigsize`
and `scriptsig` is stored outside the Tx\_Data of a Bitcoin transaction. But then where is it stored? Is it in the block or is it somehow connected to the transaction-data?

Also, how is it possible that this Bitcoin included in the transaction can be unlocked if the signature data is external from the transaction?

**Tags:** transactions, block, script, segregated-witness, signature


---

## 1 answers

### Answer by username_1 on 2022-06-23. Score: 4

From the perspective of new post-segwit nodes, the witness data **is** part of the transaction data. It is serialized in a new field, after all the transaction outputs, before the locktime field.

However, this field is stripped out before relaying to old pre-segwit nodes. So from the perspective of those old nodes, the witness data isn't just external - it just doesn't exist. They don't care about the witness data, as to them, these outputs are the equivalent of "True": anyone can spend them without any signatures.


---

