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

[Clarity] TBD contract for keeping sbtc state #3958

Open
jferrant opened this issue Sep 20, 2023 · 3 comments
Open

[Clarity] TBD contract for keeping sbtc state #3958

jferrant opened this issue Sep 20, 2023 · 3 comments
Assignees
Labels
feature Brand new functionality. New pages, workflows, endpoints, etc.

Comments

@jferrant
Copy link
Collaborator

There should be a boot contract (.sbtc) that stores pending sBTC operations -- the miner node will be responsible for inserting them into the contract.

We should have read only functions to retrieve all pending transactions (peg-in, peg-out, handoff)
There should be a read only function to check current state (e.g., if we haves sBTC ops older than x amount of time...this is bad state, DKG has not been set within x amount of time, etc.).
There should be a write function (only writeable by the N signers for a given reward cycle N) to set DKG

Considering re-visiting / re-factoring / importing logic used in sbtc-registry: https://github.com/Trust-Machines/stacks-sbtc/blob/main/sbtc-mini/contracts/sbtc-registry.clar

Relates to #3948

@setzeus
Copy link
Collaborator

setzeus commented Sep 26, 2023

Latest update on #3977

@setzeus setzeus moved this from Status: 🆕 New to Status: 💻 In Progress in Stacks Core Eng Sep 26, 2023
@setzeus
Copy link
Collaborator

setzeus commented Sep 28, 2023

@setzeus
Copy link
Collaborator

setzeus commented Oct 17, 2023

Reading through SIP25 to highlight differences b/w DR & Nakamoto sBTC.

stacksgov/sips#156

@saralab saralab moved this from Status: 💻 In Progress to Status: 🆕 New in Stacks Core Eng Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Brand new functionality. New pages, workflows, endpoints, etc.
Projects
Status: Status: 🆕 New
Development

No branches or pull requests

2 participants