Transaction validity clause: output must exist

0

I'm reading through the Mastering Bitcoin book and the section talking about what nodes check for to ensure a transaction is valid before accepting it refers to this:

Each node verifies every transaction against a long checklist of criteria:

...

For each input, the referenced output must exist and cannot already be spent.

However, I'm not sure exactly what it means for "an output to exist". How can an output exist if I am creating it now with this transaction?

Snowman

Posted 2016-09-03T01:06:15.990

Reputation: 171

Answers

1

After reviewing the structure of a transaction, I now understand what is meant by that statement.

enter image description here

The input is the UTXO, and the output is the output of that UTXO. So when it says the output must exist and cannot already be spent, it's saying the output of the UTXO must exist and not already be spent.

Snowman

Posted 2016-09-03T01:06:15.990

Reputation: 171

0

It says "referenced output", which means output of previous transaction. (The one you are spending.)

Martin Habovštiak

Posted 2016-09-03T01:06:15.990

Reputation: 85