PubRef - Script OP Code For Public Data References



Summary:

In a recent conversation between two individuals named Mike and ZmnSCPxj, the topic of transaction pruning in Bitcoin Core was discussed. While ZmnSCPxj acknowledged the need for pruning to improve scalability, they argued that it could cause issues with a future `OP_PUBREF` referencing pruned data. Pruning involves validating all transactions and then discarding transaction data after validation, while keeping only the UTXO set of all addresses. Thus, if a block references an `OP_PUSHDATA` in a pruned block, how can a pruned validator access the necessary data? It is important to note that pruned nodes are still fullnodes and validate all transactions, not just those involving their wallet.


Updated on: 2023-06-13T20:10:16.122637+00:00