Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Design proposal: Deposits through single bitcoin output #51

@netrome

Description

@netrome

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions