Skip to content

Conversation

@jadonamite
Copy link

Description

This PR adds Module 26: Bitcoin Logic by @jadonamite. It demonstrates how to manually parse the 80-byte Bitcoin Block Header structure using buff-slice.

Content Overview

  • Byte Map: A reference table for Bitcoin Header offsets.
  • Implementation: Using buff-slice and buff-to-uint-le to extract Merkle Roots and Timestamps.
  • Safety: Explanation of why unwrap-panic is acceptable for fixed-buffer slicing.

Checklist

  • Offsets verified against Bitcoin Core protocol specs.
  • Utilizes Stacks 2.1 native buff-to-uint-le.
  • 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