Browser tool for Stacks Bitcoin staking (SIP-045): recompute the P2WSH lock address for a bond from public inputs, then compare it to the destination your wallet asks you to sign.
Live at: stx-labs.github.io/verify-lock-address
Given a bond index, Stacks staker principal, and Bitcoin unlock script, the app:
- Derives the unlock height from on-chain POX info
- Builds the witness script in your browser with
@stacks/bitcoin-staking - Cross-checks the output script against read-only calls to
ST000000000000000000002AMW42H.pox-5(private-1) orSP000000000000000000002Q6VF78.pox-5(mainnet). - Optionally compares the result to an address or output-script hex you paste in.
Leather can prefill the Stacks address and Bitcoin public key. Script construction runs in the browser. Only public Stacks API calls leave your machine.
Supported networks: private-1 (regtest, bcrt1…) and mainnet (bc1…).
npm ci
npm run dev # requires python3; static server at http://localhost:8123
npm run build # bundle web/src → web/app.js
npm testPushes to main build, test, and deploy web/ to GitHub Pages.
web/src/— app, lock verification logic, renderingweb/index.html— page shell and stylestest/— Node tests (lock math, rendering, page smoke)