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

feat: use bootstrap signing set when missing rotate keys tx #655

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

djordon
Copy link
Contributor

@djordon djordon commented Oct 11, 2024

Description

Closes #652.

Changes

  • Add a column into the dkg_shares with the signing set information.
  • Fallback to the last known DKG aggregate key if there are no key rotation transactions. Edit: I'm actually a little nervous about using the DKG keys by timestamp, since this isn't guaranteed to be consistent across signers. Might be best to tie it to the bitcoin block that it was done over. Created [Feature]: Use the bitcoin block hash instead of a timestamp for getting the "last" DKG shares #661 for this.
  • Fallback to the bootstrap signing set if there are no key rotation transactions.

Testing Information

This still needs an integration test for the query and another integration test for the fallback behaviors.

Checklist:

  • I have performed a self-review of my code

@djordon djordon added sbtc bootstrap signer The sBTC Bootstrap Signer. key rotation The functionality to rotate a private key for a signer in sBTC-v1. and removed key rotation The functionality to rotate a private key for a signer in sBTC-v1. labels Oct 11, 2024
@djordon djordon added this to the Minimum Working Deposit Flow milestone Oct 11, 2024
@djordon djordon marked this pull request as ready for review October 11, 2024 15:31
Base automatically changed from 651-store-bootstrap-signing-set-info-in-the-config to main October 11, 2024 18:24
in the TxSignerEventLoop, fall back to
the bootstrap signers if no rotate-keys tx exists
output. Use it as a fallback when getting the
signer set when signing bitcoin transactions
when loading WSTS state machines from
the database
of the get_last_dkg_shares function
and make it public for testing purposes.
@djordon djordon force-pushed the 652-use-fallback-keys-when-missing-rotate-keys-tx branch from cee7b34 to 1a476c8 Compare October 11, 2024 18:25
@djordon djordon changed the title feat: use fallback keys when missing rotate keys tx feat: use bootstrap signing set when missing rotate keys tx Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sbtc bootstrap signer The sBTC Bootstrap Signer.
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

[Feature]: Use bootstrap keys when missing rotate-keys transactions
1 participant