-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: run DKG only once #1115
fix: run DKG only once #1115
Conversation
searching for DKG shares
each sighash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in devnet
Oh I figured out how to test that we sign things correctly, even when locking deposits and signer UTXOs with different keys. It isn't so bad, will add tomorrow. |
@@ -1467,10 +1475,10 @@ impl super::DbRead for PgStore { | |||
, signer_set_public_keys | |||
, signature_share_threshold | |||
FROM sbtc_signer.dkg_shares | |||
WHERE aggregate_key = $1; | |||
WHERE substring(aggregate_key FROM 2) = $1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit -- I think I would have preferred that we stored this in an extra column instead of messing around with it at query-time. I think we do something similar and even more convoluted somewhere else..
Description
Closes #1114
Changes
Testing Information
No tests yet, hence the draft status.
Checklist: