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?

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

22d: 15h remaining
Rewards Pool
$250,000
Vault TVL
To be determined
Started
02 December 2024
Ends
13 January 2025
Rewards Token
STX
Triaged by Immunefi
Yes
KYC Required
Yes
nSLOC
25,492
View Attackathon

⁣1. Stacks 101

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.

Beginner

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.

Beginner

1.3. Network Basic Definitions

Familiarize yourself with the fundamental terminology and concepts within the Stacks network.

Beginner

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.

Beginner

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.

Beginner

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.

Beginner

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.

Beginner

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.

Beginner

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.

Beginner

1.10. How Transactions Work

Gain insights into how transactions are structured and processed within the Stacks network, from signing and broadcasting to inclusion in blocks and finalization on Bitcoin.

Beginner

⁣2. 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.

Beginner

2.2. The Clarity Book

Dive into "The Clarity Book," a comprehensive guide to getting started with Clarity. This resource provides step-by-step instructions, examples, and best practices for understanding secure and efficient smart contracts on the Stacks blockchain.

Intermediate

⁣3. 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.

Beginner

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.

Intermediate

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.

Intermediate

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.

Beginner

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.

Intermediate

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.

Intermediate

3.7. Clarity Contracts

Explore the Clarity smart contracts that power the sBTC Bridge. This includes an in-depth look at their state variables and interfaces, focusing on their role in enabling secure and efficient sBTC operations.

Advanced

⁣4. Running a Proof of Concept (PoC)

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.

Beginner

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.

Beginner

4.3. Running a Test Environment for Integration Tests

Learn how to set up a local test environment to run integration tests for the sBTC system. This includes simulating real-world interactions to identify and debug issues effectively.

Intermediate

⁣5. Audits & Known Issues

5.1. Financial Incentives and Known Issues

Understand the financial incentives driving participation in the Stacks network and the challenges related to security and budget allocation.

Intermediate

⁣6. Technical FAQ

6.1. Stacks Whitepaper

Explore the foundational Stacks whitepaper to gain insights into the technical architecture and design principles of the Stacks network.

Advanced

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.

Advanced

6.3. Overview of Technical Specifications

Review a high-level summary of the technical specifications governing the Stacks blockchain and its key features.

Intermediate

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.

Beginner

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.

Advanced

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.

Advanced

6.7. SIP021: Nakamoto Consensus

Explore SIP-021, which details the integration of Nakamoto Consensus principles into the Stacks network.

Advanced

6.8. Repository of SIPs

Access the complete repository of Stacks Improvement Proposals (SIPs) to review and understand all network upgrades and features.

Advanced

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.

Advanced

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.

Advanced

6.11. Schnorr Signatures through FROST

Explore the FROST protocol, a round-optimized Schnorr threshold signature scheme that balances efficiency and security for multi-party cryptographic operations.

Advanced