Sigil Bitcoin

Bitcoin libraries for Sigil

Sigil Bitcoin

Live browser tools, API reference, and package guides for keys, addresses, scripts, transactions, PSBTs, Miniscript, and secp256k1 bindings.

Runs locally in WebAssembly

Bitcoin Toolbench

Tools share one browser runtime. No transaction broadcast or remote Bitcoin API calls are used.

Tools

HASH160

Compute RIPEMD160(SHA256(bytes)), the 20-byte hash used by P2PKH, P2SH, and P2WPKH address flows.

HASH256

Compute double SHA256, the hash construction used for transaction IDs, block IDs, and checksums.

Tagged hash

Compute a BIP340-style tagged hash for Taproot and Schnorr related domains.

Hex decode

Validate and normalize hex data.

Base58 encode

Encode raw bytes with Bitcoin's Base58 alphabet.

Base58 decode

Decode a Bitcoin Base58 string into raw bytes.

Base58Check encode

Encode a version byte plus payload with a HASH256 checksum.

Base58Check decode

Decode and verify a Base58Check string.

SegWit encode

Encode a native SegWit address using Bech32 or Bech32m as required by witness version.

SegWit decode

Decode and validate a native SegWit address.

Private key to addresses

Derive a compressed public key, WIF, and standard address forms from a 32-byte private key.

WIF decode

Decode a Wallet Import Format private key.

BIP39 entropy

Convert BIP39 entropy bytes into a mnemonic phrase.

BIP39 mnemonic

Validate a BIP39 mnemonic and derive entropy plus seed bytes.

BIP32 derive

Derive an extended private key, xpub, public key, and addresses from a seed and derivation path.

Script template

Build standard scriptPubKey templates or pushdata scripts from raw hex.

Parse transaction

Deserialize a raw Bitcoin transaction and summarize its IDs, counts, locktime, witness status, and canonical hex.

Build demo transaction

Construct a small synthetic P2WPKH output transaction for serialization and txid inspection.

Parse PSBT

Deserialize a PSBT and summarize its unsigned transaction and map counts.

Sign P2WPKH demo PSBT

Build, sign, finalize, and extract a synthetic P2WPKH PSBT.

Compile Miniscript

Parse Miniscript, inspect its type flags, and compile it to script bytes.

Inspect descriptor

Parse a descriptor, compute its checksum, and try compiling or deriving its scriptPubKey.

Guides

API Modules