Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design proposal: Deposits through single bitcoin output #51

Open
netrome opened this issue Aug 2, 2023 · 2 comments
Open

Design proposal: Deposits through single bitcoin output #51

netrome opened this issue Aug 2, 2023 · 2 comments
Labels
enhancement New feature or request stale

Comments

@netrome
Copy link
Contributor

netrome commented Aug 2, 2023

Proposal

From this Discord discussion: https://discord.com/channels/621759717756370964/730814571517968436/1135960606919368734

Briefly the idea is to allow a deposit flow with two steps:

  1. The user submits a deposit commit transaction. The only deviation from the current spec, is that this transaction cannot be immediately reclaimable by the user. It can be reclaimable through a time lock, as long as it can be proven that only the Stackers can spend this UTXO for the next few reward cycles.
  2. The Stackers accept the deposit through a smart contract call on Stacks and mint the sBTC to the user. This call would reveal the witness script committed to in 1. so that anyone can verify that the minted amount is correct.

Motivation:

With this change, users would only have to subsidize a single BTC transaction to deposit - as opposed to the current commit-reveal scheme where they would have to subsidize two transactions.

Definition of done

We have explored the possibility of supporting the deposit flow described above and any related variants, and decided on whether or not to include it in the design.

@netrome netrome added the enhancement New feature or request label Aug 2, 2023
@netrome
Copy link
Contributor Author

netrome commented Aug 3, 2023

Following the discussion for withdrawals, and in the interest of keeping the scope for 1.0 manageable let's aim for this to be a sBTC 1.1 feature earliest.

@netrome netrome changed the title Draft: Design proposal: Deposits through single bitcoin output Design proposal: Deposits through single bitcoin output Aug 3, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in Stacks Core Eng Aug 4, 2023
@netrome netrome removed their assignment Aug 7, 2023
Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
Status: Status: 🆕 New
Development

No branches or pull requests

1 participant