New answers tagged

2 votes

Where Is Signature Data Stored In Post-SegWit Transactions?

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, ...
user avatar
4 votes
Accepted

Why does `OP_CHECKSIGADD` allow TAPROOT keyspends?

It's not; that option is unreachable. In SigVersion::TAPROOT mode, there is no script to speak of, so the script interpreter is never invoked with it. See line 417 where this is asserted. The line you ...
user avatar
0 votes

Is bitcoin script necessary?

was it necessary to have another language for these operations? isn't it possible to write the whole runtime in one language? It is possible to have one language for bitcoin implementation and use ...
user avatar
8 votes
Accepted

Is bitcoin script necessary?

was it necessary to have another language for these operations? isn't it possible to write the whole runtime in one language? To be clear: the goal of the scripting language isn't for defining the ...
user avatar
4 votes

Is bitcoin script necessary?

It is theoretically possible that Satoshi could have taken the entire C++ language (Bitcoin Core is written in C++) and then severely restricted what C++ functionality was available for Bitcoin ...
user avatar
2 votes

Is bitcoin script necessary?

Consider a script that says While (true) { // some pointless but slow calculation } in order to discover if the transaction containing it is valid, every node on the network has to run this ...
user avatar
0 votes

Bitcoin and Smart Contracts

Some options: Bitcoin Computer (https://www.bitcoincomputer.io/): Bitcoin Computer is an easy to use smart contract system for Bitcoin. Elements: Elements is a general purpose blockchain platform ...
user avatar
  • 143
0 votes

How do I extract the address from a scriptPubKey?

With library https://github.com/petertodd/python-bitcoinlib a P2WPKH address derivation example: from bitcoin import SelectParams from bitcoin.core import x from bitcoin.core.script import CScript ...
user avatar
0 votes

Can transactions include a negative output value, an empty sigScript or an empty scriptPubKey and still meet consensus rules?

To add to Claris' answer something that confused me in the empty scriptPubKey case that was explained to me on IRC this week. None of the explicitly defined output types thus far (P2PK, P2PKH, P2SH, ...
user avatar

Top 50 recent answers are included