Updates
See Specific updates for each Bounty
Last updated
See Specific updates for each Bounty
Last updated
Separate sBTC alpha deployment
Currency support in UI
Separate sBTC alpha deployment
Feat/55 signer api microservice
Withdrawal and deposit payloads for sBTC Alpha
Several days debugging byte array and hex strings with @netrome. hard work paid off - led to first successfuly sBTC Alpha withdrawal:
Testing and improvements of the withdrawal for op_return see and
Currency support - see
Stacks Signer Dashboard Bounty - made a start on the web app - setup the GitHub repo. Reusing the Design for the Bridge but with some minor modifications. Hosting the app so it interlinks seamlessly with the Bridge but exists in different code base.
The keys are able to spend the reveal and reclaim script paths generated by the deposit. Having them as custodial keys means;
a) the bridge can generate test reveal transaction b) the bridge can refund users bitcoin if no spent by the reveal
The corresponding public keys are accessible from the API via;
Two paths;
/reclaims
/reclaims/reclaim/_id
the former displays deposits and provides filters (tbd). The latter provides buttons to integrate with Stacks Web Wallets, details about the transactions and displays raw PSBT data in hex and b64 encoding for copying to wallet software.
building and parsing deposit payloads
building and parsing withdrawal payloads
signing, hashing and recovering public keys from signatures
commitment witness data
15th - Wrote some User Stories for the deposit and withdraw flows and setup Trello Kanban board.
Following reveal transaction (using op_drop and taproot) has been tested on Bitcoin testnet.
The example below uses an internal random private key for signing and pays the reveal and reclaim paths to Schnorr pubkeys;
With following script
Still to do;
reclaim transaction
make the reclaim payable to any segwit (v0 or v1) address
prove this works for general taproot address, and
show arbitrary wallets can sign the reveal/reclaim transactions
[14:45]BTW Sparrow Wallet is amazing if you haven't tried it - great feedback.
[14:47]i've not worried too much aboiut the stacks data as yet and need to make this work for a general pubkey and not just a random private key but getting there...
Finished off CI - staging
branch s now default for PRs - serves as a safety latch for production builds.
Switching the commit tx from p2wsh to p2tr. Mostly learning taproot/tapscript. Adjusted the ui and api to handle the tapscript data
Writing a blog post on this experience - working title “sBTC Commit Transactions”
What do we want to achieve this week?
Working on the p2tr commitment transaction.
Trying to figure out how to build the PSBT to spend the script paths from the pegin.
Which blockers must be resolved to achieve this?
Reach out to dev working on Electrum plugin
pato2k5@gmail.com setpato#7961
- UX feedback - remove all mention of satoshi
Finished - adds efficient endpoints for the UI and endpoints to support electrum plugin for building the taproot commitment and payload data.
Merged - improvements to deposit and withdrawals for both op_drop and op_return
Merged Design Implementation
Implementing Maximes' . Tracked by and rebuild the UI using Tailwind (replacing use of Bootstrap) for a modern design.
Two ( and ) PRs move a set of key pairs into the server - accessible via environment vars on the target machine.
Raised with Hiro web wallet on signing the psbt for the reclaim.
PRs and on web / api respec. These deal with tracking commit / reveal / reclaim transactions starting from the initial user commitment. The status of the overall flow is shown to the user along with the ability to generate PSBTs for both reclaim and reveal (the latter for testing purposes).
19th merged two PRs related to . Creates a shared lib for the web and api projects containing the common functions;
16th - Dealing with on 0 padding of the stacks payload data and fine tuning of the deposit parameters - see also .
Details from in discord;
Making progress now see
[14:45]Marvin you were right about the op code - this tx has OP_CHECKSIG at the end. See pic..
[14:48]for completeness the commit to the above is
- Commitment transaction. Exploring ways to build the reclaim and reveal script paths. Committed whch tidies up code around buildng the commit tx. Several option exist but they wll be rationalised in later PR.
Created a on the Mini sBTC pegin requirements.
Design issues: