Replies: 1 comment
-
I'm under the impression that we won't support the BTC-initiated withdrawal request. At least initially. I'd love to hear if there is any arguments for supporting it, otherwise the flow feels much simpler if it's just initiated as a Stacks contract call. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current design for withdrawing from sBTC -> BTC involves four Clarity contracts with the ability for users to submit either a BTC or STX transaction to initiate a withdrawal.
The five contracts involved are:
The item in question, the script involved in sbtc-withdrawal-request-btc is the following:
magic (2 bytes) + op (1 byte) + amount (8 bytes) + schnorr signature (64 bytes)
The magic bytes are what clients will use to detect that this is an sBTC operation, the op byte is op_return, the amount is numerical value of satoshis withdrawn which can be up to eight bytes & the final item is the schnorr signature for the corresponding p2tr output.
Beta Was this translation helpful? Give feedback.
All reactions