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

[stacks-signer] Determine if wallet handoff needs to occur #395

Open
1 task
jferrant opened this issue Nov 9, 2023 · 0 comments
Open
1 task

[stacks-signer] Determine if wallet handoff needs to occur #395

jferrant opened this issue Nov 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jferrant
Copy link
Contributor

jferrant commented Nov 9, 2023

Description

Create a helper function that determines whether wallet handoff needs to happen based on signer state/pox 4 state
(DKG wallet for next reward cycle should be set)

Context

Signers need to hand off BTC funds to the next signers. They should thereofre be checking whether handoff needs to occur before doing so (can only happen after the start of the prepare phase of the next reward cycle since signers must be known and they must have already performed their own DKG round/vote)

Expected Approach

Query the pox 4 contract for the DKG address of the next reward cycle.
If not set, return false. If set, check if we are not already performing handoff. If not, return true, else false.

  • PR adds the feature ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants