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

fix: reject empty pre-sign requests #1190

Merged
merged 4 commits into from
Jan 9, 2025
Merged

Conversation

djordon
Copy link
Contributor

@djordon djordon commented Jan 8, 2025

Description

Closes #1189.

Changes

  • Reject a BitcoinPreSignRequest if it does not contain any deposit or withdrawal requests.
  • Reject fee rates that are not strictly positive.
  • Make sure pre-validation checks run before everything else during bitcoin validation.

Testing Information

I tested that the changes here solve the issue on local devnet.

Checklist:

  • I have performed a self-review of my code

@djordon djordon added bug Something isn't working sbtc signer binary The sBTC Bootstrap Signer. labels Jan 8, 2025
@djordon djordon added this to the sBTC: Key rotation milestone Jan 8, 2025
@djordon djordon self-assigned this Jan 8, 2025
@djordon djordon changed the title No empty pre sign requests fix: reject empty pre-sign requests Jan 8, 2025
@djordon djordon merged commit 4d59099 into main Jan 9, 2025
4 checks passed
@djordon djordon deleted the no-empty-pre-sign-requests branch January 9, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sbtc signer binary The sBTC Bootstrap Signer.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Ensure we check for nonempty pre-sign requests
2 participants