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
Contributors