Skip to content

Conversation

@jadonamite
Copy link

Description

This PR adds Module 28: Bitcoin Logic by @jadonamite. It details the architecture of a "Catamaran Swap," enabling trustless STX <-> BTC exchange without bridges.

Content Overview

  • Concept: Using Stacks' read-only Bitcoin view to verify payments.
  • Contract: A complete HTLC-style implementation (catamaran-swap.clar).
  • Parsing: How to validate scriptPubKey and value from raw BTC transactions.

Checklist

  • Logic for was-tx-mined? integration included.
  • Replay attack mitigation strategies discussed.
  • Formatting follows the repository's style guide.

Related Issues

Closes # (If applicable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant