Opcodes
The visualization below includes an explanation of the most commonly used opcodes in standard transactions.
Understanding opcodes
Getting to know the opcode in this visualization helps you understand most standard bitcoin transactions
<sig> <pubkey> OP_CHECKSIG
Categories of opcodes
Key Characteristics
- Opcodes are typically one byte in size.
- Some opcodes have been disabled for security reasons.
Exercise: Implement OP_ADD
Your task is to implement the OP_ADD
function in the interactive code editor below. Use the provided template and follow the steps outlined in the comments.
Test your implementation by:
- Pushing numbers onto the stack using the input field and "Push" button.
- Clicking the "OP_ADD" button to execute your implementation.
- Observing the result on the stack and the feedback message.
Ready to Code?
Choose your preferred language to begin