Skip to content

karliatto/decodebitcoin.com

Repository files navigation

DecodeBitcoin.com

This is an experimental project using Rust and WASM to decode Bitcoin-related data.

Features

  • Bitcoin Transaction decoding
  • BIP 39 XOR
  • BIP 32
  • BIP 21
  • BOLT 11
  • BOLT 12

Web Interface

Development Server

Run the development server with:

npm run serve

Then visit http://localhost:8080 in your browser.

Production Build

Build and serve the production version:

npm run build

Serving Options

  1. Using Python's HTTP server:
cd dist
python3 -m http.server 8080
  1. Using Nginx:
    • Copy the dist directory contents to your web root
    • Add WASM MIME type to your Nginx configuration:
types {
    application/wasm wasm;
}

CLI Usage

Decode Bitcoin Transaction

cargo run --bin decodebitcoin-cli -- decode <transaction_hex>

Derive from Extended Private Key

cargo run --bin decodebitcoin-cli -- derive <xpriv>

Example:

cargo run --bin decodebitcoin-cli -- derive tprv8ZgxMBicQKsPczGmwTSuQwPSVoqEyXBxinSRRVHieeF7FUi8eZVh46dRJUSPr8tofmC1TymdPMGYmu6TakaEQaA27VMYZxHs4pcekFTotCC

About

Experimental project using Rust and WASM to decode Bitcoin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published