Skip to content

feat: sBTC deposit and withdraw flow support #8

@satoshai-dev

Description

@satoshai-dev

Summary

Add helpers and E2E support for sBTC bridge interactions (deposit BTC → sBTC, withdraw sBTC → BTC).

Context

sBTC is the trust-minimized Bitcoin peg on Stacks. Testing sBTC flows requires signing both Bitcoin PSBTs (deposit) and Stacks transactions (withdraw). This bridges the Bitcoin and Stacks layers.

Requirements

  • Helpers for sBTC deposit flow (construct PSBT, sign, broadcast to Bitcoin)
  • Helpers for sBTC withdraw flow (Stacks contract call to initiate withdrawal)
  • Bitcoin regtest/testnet4 integration for deposit E2E
  • Example spec demonstrating full deposit + withdraw cycle
  • Documentation for sBTC testing setup

Dependencies

Milestone

v0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestroadmapFuture features and direction

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions