stx2btc 0.1.0

A tool for converting STX addresses to BTC addresses
Documentation
  • Coverage
  • 50%
    3 out of 6 items documented0 out of 3 items with examples
  • Size
  • Source code size: 10.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 1m 49s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • larrysalibra

stx2btc

A example Rust library for converting between Stacks (STX) and Bitcoin (BTC) native SegWit addresses.

WARNING

This library is only a proof concept example. Do not use in production.

Features

  • Convert Stacks addresses to Bitcoin native SegWit addresses (P2WPKH)
  • Convert Bitcoin native SegWit addresses back to Stacks addresses (P2WPKH only)
  • Maintains the same underlying HASH160 between address formats
  • Only supports mainnet addresses