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

sBTC Research - Create Deposit Procedure Diagram #349

Open
6 tasks
AshtonStephens opened this issue Nov 2, 2023 · 1 comment
Open
6 tasks

sBTC Research - Create Deposit Procedure Diagram #349

AshtonStephens opened this issue Nov 2, 2023 · 1 comment
Assignees
Labels
design Designing or fleshing out the implementation of a feature or task. research Looking into something, not sure what

Comments

@AshtonStephens
Copy link
Collaborator

Description

We need to create a deposit procedure diagrams to put in place of Figure 1 of the original sBTC SIP PR.

Context

During the SIP planning process we've identified a few key changes that we intend to make for the original deposit flow. The primary difference are:

  1. OP_RETURN will be supported but not the primary deposit protocol
  2. OP_DROPs will be collated into a single OP_RETURN along with any other UTXOs to the peg wallet such that at the end of every Bitcoin block there is only a single UTXO to the peg wallet.
  3. A user using OP_DROP will provide the revealer data via a Revealer API in the happy path, and "challenge" or "force" the transaction to be noticed by signers via a call to the .sbtc contract.

All research discussions: research
All design discussions: design

Most relevant:

Expected Approach

Create one or more protocol flow diagram like the others in the SIP that will show the full flow of OP_DROP and OP_RETURN and include that in the SIP. It is expected that these are iterated upon within this ticket.

  • Read relevant sBTC research discussions
  • Discuss areas of ambiguity
  • Create protocol diagram/s
  • Iterate

Artifacts / Acceptance Criteria

  • There are N protocol design diagrams that handle all variations of the 3 steps in the context description.
  • Those diagrams have been confirmed by Jude and others.
  • Those protocol design diagrams are linked to and included in the sBTC SIP in the initial sBTC SIP PR: SIP: Nakamoto sBTC stacksgov/sips#156
@AshtonStephens AshtonStephens added the research Looking into something, not sure what label Nov 2, 2023
@AshtonStephens AshtonStephens self-assigned this Nov 2, 2023
@AshtonStephens AshtonStephens added the design Designing or fleshing out the implementation of a feature or task. label Nov 2, 2023
@FriendsFerdinand
Copy link

FriendsFerdinand commented Nov 2, 2023

I think the steps are going to look like this for Commit-Reveal (largely unchanged compared to stacks-network/sbtc#345 (comment)):

image

And in the case of a Challenge, we'll have the following:

image

In both cases, the curve arithmetic is done by the Stacks Node and not in the Clarity contract

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
design Designing or fleshing out the implementation of a feature or task. research Looking into something, not sure what
Projects
None yet
Development

No branches or pull requests

2 participants