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.

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

@jferrant

Description

@jferrant

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 ...

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions