Bitcoin script opcode counts

Jul 26 - Jul 26, 2012

  • In a discussion thread from 2012, Mike Hearn expressed his curiosity about the use of OP_DEPTH and OP_CODESEPARATOR in Bitcoin scripts.

Specifically, he wanted to see transaction IDs that were utilizing these opcodes. However, it was later discovered that all instances of OP_DEPTH were actually errors in P2Pool blocks. This was due to a bug in the software, which had been making small payments to scriptpubkey "script" unknowingly. The reason this went unnoticed for some time was because it was initially assumed to be an intentional action by a user utilizing p2sh.To fulfill the requestor's curiosity, Jeff Garzik, an American software developer associated with exMULTI, Inc., conducted a comprehensive query over the entire blockchain to inspect script opcode usage. This analysis has been made publicly available on GitHub. The query counted the number of times each opcode was used, providing data for both the main blockchain and testnet3.The data shared on GitHub by Jeff Garzik provides a detailed breakdown of how many times each opcode was used in the blockchain. The information is presented in an organized chart that lists all opcodes and their corresponding count numbers. Overall, there were 26 different opcodes used in the blockchain. The opcode with the highest frequency of use was OP_CHECKSIG, which had a count of 12,188,693. OP_DUP followed closely behind with a count of 11,699,991. While some opcodes like OP_4 and OP_NOP1 had minimal use, others like OP_PUSHDATA had a relatively high count of 32,350,369.In addition to sharing the data, Jeff Garzik also mentions his association with exMULTI, Inc. and provides his email address for further communication.

Link to Raw Post

Thread Summary (0 replies)

Jul 26 - Jul 26, 2012

Message History

1 messages

Original Post
Jul 26, 2012/12:50 UTC
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback