-
Notifications
You must be signed in to change notification settings - Fork 18
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: validate rotate keys contract calls with validated shares #1316
Merged
matteojug
merged 16 commits into
feat/mock-signing
from
1313-validate-rotate-keys-contract-calls-with-validated-shares
Feb 7, 2025
Merged
feat: validate rotate keys contract calls with validated shares #1316
matteojug
merged 16 commits into
feat/mock-signing
from
1313-validate-rotate-keys-contract-calls-with-validated-shares
Feb 7, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lots of small follow-up modifications
match the new column
queries and simplify the validation check. Also add a test.
cylewitruk
reviewed
Feb 6, 2025
cylewitruk
reviewed
Feb 6, 2025
cylewitruk
reviewed
Feb 6, 2025
matteojug
reviewed
Feb 6, 2025
the started_at from the state machine Id
with the postgres implementation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
key rotation
The functionality to rotate a private key for a signer in sBTC-v1.
sbtc signer binary
The sBTC Bootstrap Signer.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Closes #1313.
This PR introduces a few changes that we had spoken about earlier. Also, it turns out that #1313 was already handled the necessary logic required for #1301, this just adds a test.
Changes
dkg_shares_status_id
column to just be an enum. Also rename it todkg_shares_status
.verified_at_bitcoin_block_*
columns tostarted_at_bitcoin_block_*
.dkg_shares
table. This was kinda accidental, if we want it I don't mind adding it back.unverified
toverified
orfailed
, no other status transitions are allowed. This allowed for some simplifications.SignerStateMachine::get_encrypted_dkg_shares
function now takes a bitcoin block ref for when DKG started. It probably makes more sense to put this information in theSignerStateMachine
but the diff was growing and it looked more complex than the route took here.Testing Information
This PR adds a test for the new behavior of the
revoke_dkg_shares
andverify_dkg_shares
functions. It also adds a new test for the validation condition inRotateKeysV1
struct.Checklist: