0

I read https://bitcoindev.network/understanding-the-data/ and it explain that the leveldb of the chainstate contain transaction with at least one unspent output.

And it has "The scriptPubKey and amount for those unspent outputs."

But I read somewhere any OPCODE script is possible for an output. Where are the non-scriptPubKey outputs?

1

2 Answers 2

1

They're the same thing. The scriptPubKey is the script in the transaction output.

0

The scriptPubKey does not just contain public keys. It is specifically a script. The scrtipPubKey of an output is just the output script, so any arbitrary script in an output will be called the scriptPubKey. They are treated exactly the same as those scripts for pubkeys; there is no special distinction. Such outputs are stored in the chainstate database in the same way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.