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

schnorrsig: clear out masked secret key in BIP-340 nonce function #1650

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

theStack
Copy link
Contributor

Considering that the secret key can be determined from masked_key if the passed auxiliary data is known (which is optional and set to all-zeros if not explicitly provided, see ZERO_MASK), it seems reasonable to clear it from the stack.

Copy link
Contributor

@real-or-random real-or-random left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK a82287f

Copy link
Contributor

@jonasnick jonasnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a82287f

@jonasnick jonasnick merged commit 00774d0 into bitcoin-core:master Jan 29, 2025
116 checks passed
@theStack theStack deleted the schnorr-wipe-masked_key branch January 29, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants