Stacks sBTC Academy
Stacks sBTC Academy
Stacks sBTC Academy is a learning page with everything you need to know to find bugs on Stacks. With guides to help you learn Stacks fast and use Immunefi successfully.
View Attackathon
What's an Attackathon?
What's an Attackathon?
Attackathons are education-based bug hunting competitions where security researchers compete over a reward pool by submitting impactful bugs in the project's code. Here’s how they work:
Before the Attackathon
Immunefi works with the project to host a security-focused education period, providing top tier education and support to security researchers.
During the Attackathon
Security researchers experience the optimal hunting conditions, with direct project support, responsiveness, and duplicate rewards.
After the Attackathon
Immunefi spotlights the security accomplishments, with a custom leaderboard, Attackathon Findings Report, Bug Fix Reviews, and NFT awards.
Ultimately, Attackathons serve to secure projects, develop their security ecosystem, and create new opportunities for security researchers.
Live
1. Stacks 101
1. Stacks 101
1.1. What is Stacks?
1.1. What is Stacks?
Learn why the Stacks ecosystem was built, its connection to Bitcoin, and what separates Stacks from other L2 blockchain protocols.
1.2. Stacks connection to Bitcoin
1.2. Stacks connection to Bitcoin
Explore how Stacks is intrinsically connected to Bitcoin, using the Bitcoin blockchain as a base layer. Learn how this connection ensures a secure and immutable foundation for Stacks-based smart contracts and decentralized applications.
1.3. Network Basic Definitions
1.3. Network Basic Definitions
Familiarize yourself with the fundamental terminology and concepts within the Stacks network.
1.4. Proof of Transfer (PoX)
1.4. Proof of Transfer (PoX)
Dive into the Proof of Transfer (PoX) consensus mechanism, which uniquely ties Stacks to Bitcoin. Learn how PoX secures Stacks, incentivizes participation, and bridges the two blockchain networks.
1.5. Account Model
1.5. Account Model
Discover how accounts are managed within the Stacks ecosystem, including account addresses, private keys, and the mechanisms that ensure secure and efficient transaction management.
1.6. Block Production
1.6. Block Production
Understand the process of block production in the Stacks network, including the role of miners and the rules governing the creation of new blocks and their integration into the blockchain.
1.7. How Mining Works
1.7. How Mining Works
Explore the mechanics of mining in the Stacks ecosystem, including how miners compete to win rewards by committing Bitcoin and the factors that influence successful mining.
1.8. How Signing Relates to Block Production
1.8. How Signing Relates to Block Production
Learn how signing ensures the integrity of blocks and transactions within the Stacks blockchain. Understand the role of cryptographic signatures in validating and securing the network.
1.9. How Stacking Works
1.9. How Stacking Works
Discover the Stacking mechanism, where participants lock their STX tokens to support network consensus and earn Bitcoin rewards. Understand the role of Stackers in the Stacks ecosystem and how Stacking contributes to network security.
2. Clarity
2. Clarity
2.1. What is Clarity?
2.1. What is Clarity?
Explore Clarity, the purpose-built smart contract language for the Stacks blockchain. Learn how Clarity is designed for predictability, security, and auditability, with a focus on preventing bugs and exploits commonly seen in other blockchain smart contract languages.
3. sBTC
3. sBTC
3.1. What is sBTC?
3.1. What is sBTC?
Learn about sBTC, a Bitcoin-pegged asset on the Stacks blockchain. Understand its purpose, how it bridges Bitcoin and Stacks ecosystems, and its role in unlocking Bitcoin's programmability while retaining its native value.
3.2. Minting sBTC
3.2. Minting sBTC
Understand the process of minting sBTC by depositing Bitcoin into the bridge. Gain insights into the mechanisms that ensure Bitcoin is securely locked and the equivalent sBTC is issued on Stacks.
3.3. Withdrawing BTC
3.3. Withdrawing BTC
Learn how to withdraw Bitcoin by redeeming sBTC through the sBTC Bridge. This includes understanding the operational flow and security measures in place to ensure a reliable withdrawal process.
3.4. Emily API
3.4. Emily API
Explore the Emily API, a crucial component for managing the sBTC Bridge. Learn how it facilitates seamless communication between sBTC users and signers, ensuring secure and efficient sBTC operations.
3.5. sBTC Transaction Walkthrough
3.5. sBTC Transaction Walkthrough
Dive into the lifecycle of an sBTC transaction, from initiation to completion. This module covers the detailed steps and interactions between Bitcoin, Stacks, and Clarity smart contracts.
3.6. Peg Wallet UTXO
3.6. Peg Wallet UTXO
Understand the concept of Peg Wallet UTXO and its role in managing Bitcoin transactions within the sBTC Bridge. Learn about the underlying UTXO model and its integration into the sBTC system.
4. Running a Proof of Concept (PoC)
4. Running a Proof of Concept (PoC)
4.1. Setup and Installing Dependencies
4.1. Setup and Installing Dependencies
Learn how to set up the sBTC development environment by installing required tools and dependencies. Follow step-by-step instructions to prepare your system for sBTC development and testing.
4.2. Building and Running Unit Tests
4.2. Building and Running Unit Tests
Understand how to build the sBTC project and execute unit tests to verify the correctness of individual components. This module covers the basics of testing methodology and troubleshooting.
5. Audits & Known Issues
5. Audits & Known Issues
6. Technical FAQ
6. Technical FAQ
6.1. Stacks Whitepaper
6.1. Stacks Whitepaper
Explore the foundational Stacks whitepaper to gain insights into the technical architecture and design principles of the Stacks network.
6.2. sBTC Whitepaper
6.2. sBTC Whitepaper
Study the sBTC whitepaper to understand the technical design, architecture, and mechanisms behind Bitcoin-pegged assets on Stacks. Gain insights into the sBTC bridge, minting and redemption processes, and the system's security model.
6.3. Overview of Technical Specifications
6.3. Overview of Technical Specifications
Review a high-level summary of the technical specifications governing the Stacks blockchain and its key features.
6.4. What is a Stacks Improvement Proposal (SIP)?
6.4. What is a Stacks Improvement Proposal (SIP)?
Understand Stacks Improvement Proposals (SIPs), which define changes and upgrades to the Stacks network. Discover how SIPs are developed and implemented collaboratively to maintain and enhance the network's capabilities.
6.5. SIP007: Proof of Transfer
6.5. SIP007: Proof of Transfer
Learn about SIP-007, which defines the Proof-of-Transfer (PoX) consensus mechanism and its role in securing the Stacks network.
6.6. SIP015: Upgrade to PoX and Clarity
6.6. SIP015: Upgrade to PoX and Clarity
Discover the enhancements introduced in SIP-015, including upgrades to the PoX mechanism and the Clarity programming language.
6.7. SIP021: Nakamoto Consensus
6.7. SIP021: Nakamoto Consensus
Explore SIP-021, which details the integration of Nakamoto Consensus principles into the Stacks network.
6.8. Repository of SIPs
6.8. Repository of SIPs
Access the complete repository of Stacks Improvement Proposals (SIPs) to review and understand all network upgrades and features.
6.9. The OP_RETURN opcode
6.9. The OP_RETURN opcode
Understand the OP_RETURN opcode in Bitcoin transactions and its relevance to Stacks, particularly for embedding metadata in Bitcoin blocks.
6.10. Weighted Schnorr Threshold Signatures
6.10. Weighted Schnorr Threshold Signatures
Dive into Weighted Schnorr Threshold Signatures (WSTS) and their role in enhancing multisignature schemes for secure key management in Stacks.