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.
schnorrsig: clear out masked secret key in BIP-340 nonce function #1650
pull theStack wants to merge 1 commits into bitcoin-core:master from theStack:schnorr-wipe-masked_key changing 1 files +2 −0-
theStack commented at 3:24 AM on January 29, 2025: contributor
-
schnorrsig: clear out masked secret key in BIP-340 nonce function a82287fb85
- real-or-random approved
-
real-or-random commented at 8:38 AM on January 29, 2025: contributor
utACK a82287fb85746e0f7ea142a68a859e56ee86ee10
- jonasnick approved
-
jonasnick commented at 2:01 PM on January 29, 2025: contributor
ACK a82287fb85746e0f7ea142a68a859e56ee86ee10
- jonasnick merged this on Jan 29, 2025
- jonasnick closed this on Jan 29, 2025
- theStack deleted the branch on Jan 29, 2025
- hebasto referenced this in commit 0ee5708432 on Mar 10, 2025
- hebasto referenced this in commit dd59896431 on Mar 17, 2025
- fjahr referenced this in commit cd1404164e on Mar 23, 2025
- hebasto referenced this in commit 017ff1c67c on May 8, 2025
- hebasto referenced this in commit c31fcaaad3 on May 13, 2025
- fanquake referenced this in commit 8309a9747a on May 13, 2025
- vmta referenced this in commit 3a0314c68f on May 22, 2025
- janus referenced this in commit 498ffcb50b on Sep 7, 2025
- real-or-random referenced this in commit 2d30d398f9 on Feb 20, 2026
- github-actions[bot] referenced this in commit 758d4e90b4 on Mar 1, 2026
- github-actions[bot] referenced this in commit 68a2178f22 on Mar 1, 2026
- github-actions[bot] referenced this in commit a8bc1a0b2b on Mar 1, 2026
- 0x000000000019d6689c085ae165831e934ff76 referenced this in commit 3b9450150d on Mar 2, 2026
- csjones referenced this in commit a4d92824ae on Mar 2, 2026
Contributors