Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1 KB

File metadata and controls

59 lines (41 loc) · 1 KB

decodebitcoin.com

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

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