Skip to main content

Opcode

technical
blockchain

A fundamental element of Bitcoin's scripting language that enables complex transactions.

1
general

An opcode (operation code) is a fundamental element of Bitcoin's scripting language. Opcodes determine how, where, and when transactions are processed on the blockchain. They are low-level operations that are often combined to create scripts for complex transactions. This stack-based scripting language allows for programmable money, forming the foundation of cryptocurrency functionality beyond simple value transfers.

2
variety

There are a variety of opcodes, each with a unique function. Some opcodes perform mathematical operations, some control the flow of execution, and others provide cryptographic functionality. Bitcoin has approximately 200 opcodes, though not all are currently activated. Bitcoin Cash has re-enabled several previously disabled opcodes to enhance smart contract capabilities, including OP_CAT for string concatenation and OP_MUL for multiplication operations.

3
changes

While the set of opcodes in Bitcoin's scripting language is mostly consistent, it can change during a hard fork, where opcodes can be added, removed, or modified. Bitcoin Cash has been particularly active in restoring and expanding the original Bitcoin script capabilities, allowing for more complex smart contracts and applications while maintaining the security of the network.

4
usage

Understanding opcodes can be useful for developers working on Bitcoin or other similar blockchain protocols, as they provide the building blocks for transaction validation and smart contract functionality. As Bitcoin Cash continues to expand its scripting capabilities, developers are exploring new use cases like decentralized exchanges, tokenization protocols, and more complex financial instruments directly on the blockchain.

Conceptual links

Related terms

3 linked

Explore connected entries beyond the alphabetical index.

All terms and definitions may update as the Cryptionary improves.