Skip to content

LibreriadeSatoshi/The-Protocol-Experts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

The-Protocol-Experts

Curriculum with Material

🧠 Classes & Pedagogical Sequence

Class 1: Introduction to Bitcoin Script & Basic OP_CODES

Students begin by understanding the fundamentals of Bitcoin Script, its role in the Bitcoin network, and how it enables custom transaction validation conditions without the need for trusted third parties.

Topics

  • Bitcoin Script and its purpose: How it functions as a stack-based, deterministic, and non-Turing complete programming language.
  • Structure of a script: The difference between ScriptPubKey and ScriptSig in a Bitcoin transaction.
  • Essential OP_CODES: Introduction to key operation codes such as OP_DUP, OP_HASH160, OP_EQUALVERIFY, OP_CHECKSIG, and more.
  • Common use cases: From P2PKH addresses to more advanced scripts like P2SH and multisig.
  • Limitations and security: Bitcoin Script's constraints to prevent attacks and execution errors.

Material

Class 2: Bitcoin Transactions & Multi-Sig Scripts

Students take a deep dive into how Bitcoin transactions work, analyzing their structure and how inputs and outputs are validated. They will also explore multi-signature (multi-sig) scripts, learning how to create and interpret them.

Topics

  • Structure of a Bitcoin transaction: Inputs, outputs, UTXOs, and transaction serialization.
  • Transaction verification: How nodes validate transactions using Bitcoin Script.
  • Multi-signature scripts: Understanding OP_CHECKMULTISIG and how multi-sig transactions work.
  • Writing basic multi-sig scripts: Creating and interpreting P2SH multi-sig transactions.
  • Security considerations: The benefits and trade-offs of multi-signature setups.

Material

Class 3: Hashlocks, Timelocks & Conditional Logic

Students will explore advanced scripting techniques that enable conditional transactions in Bitcoin. They will learn how hashlocks and timelocks work, allowing transactions to be locked by time or secret values, and how to implement them using Bitcoin Script.

Topics

  • Conditional transactions: How Bitcoin Script enforces spending conditions.
  • Hashlocks: Using OP_HASH160 and preimages to lock transactions until a secret is revealed.
  • Timelocks: Implementing time-based restrictions with OP_CHECKLOCKTIMEVERIFY (CLTV) and OP_CHECKSEQUENCEVERIFY (CSV).
  • Practical applications: Use cases like atomic swaps, Lightning Network, and payment channels.
  • Security considerations: Best practices for safely implementing conditional logic in scripts.

Material

Material extra recomendado:

Class 4: Debugging & Real-World Use Cases

Students will learn how to debug Bitcoin scripts using specialized tools and techniques. They will also explore real-world applications of Bitcoin Script, analyzing how different OP_CODES are used in actual transactions and smart contract-like constructions on Bitcoin.

Topics

  • Debugging Bitcoin scripts: Tools and methods for testing and troubleshooting scripts.
  • Script execution analysis: How to interpret stack operations and debug failures.
  • Real-world use cases: Examining how scripts are used in P2SH, multi-sig, and Lightning Network.
  • Simulating transactions: Using testnets and scripting environments to build and analyze Bitcoin transactions.
  • Best practices and security: Avoiding common mistakes and ensuring robustness in Bitcoin scripting.

Material

Material extra recomendado:

📝 Final Project & Assessment

  • Weekly Quizzes & Assignments (40%) – Reinforce key theoretical concepts
  • Midterm Exam (20%)To be defined
  • Final Project (40%)To be defined

About

Curriculum with Material

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published