Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify Lock Address

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

What it checks

Given a bond index, Stacks staker principal, and Bitcoin unlock script, the app:

  1. Derives the unlock height from on-chain POX info
  2. Builds the witness script in your browser with @stacks/bitcoin-staking
  3. Cross-checks the output script against read-only calls to ST000000000000000000002AMW42H.pox-5 (private-1) or SP000000000000000000002Q6VF78.pox-5 (mainnet).
  4. 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…).

Development

npm ci
npm run dev      # requires python3; static server at http://localhost:8123
npm run build    # bundle web/src → web/app.js
npm test

Pushes to main build, test, and deploy web/ to GitHub Pages.

Layout

  • web/src/ — app, lock verification logic, rendering
  • web/index.html — page shell and styles
  • test/ — Node tests (lock math, rendering, page smoke)

Releases

Packages

Used by

Contributors

Languages