Skip to content

feat: zeroize nonce before drop#182

Draft
MCJOHN974 wants to merge 1 commit intoxoloki:mainfrom
MCJOHN974:viktar/zeroize
Draft

feat: zeroize nonce before drop#182
MCJOHN974 wants to merge 1 commit intoxoloki:mainfrom
MCJOHN974:viktar/zeroize

Conversation

@MCJOHN974
Copy link
Copy Markdown
Contributor

@MCJOHN974 MCJOHN974 commented Jun 16, 2025

Closes #115

Note

About zeroize crate, some of our dependencies do not use it, and thus it need some workaround to make it working. Also if I understand correctly and only this Nonce struct need zeroizing it is simpler to directly implement Drop (and as bonus avoid some unsafe code which Zeroize have under the hood and avoid extra dependency).

p.s. oookay, not only Nonce but at least Scalar should be zeroized and it makes everything a bit more difficult

@MCJOHN974 MCJOHN974 self-assigned this Jun 16, 2025
@MCJOHN974 MCJOHN974 added this to sBTC Jun 16, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in sBTC Jun 16, 2025
@MCJOHN974 MCJOHN974 moved this from Needs Triage to In Progress in sBTC Jun 16, 2025
@MCJOHN974 MCJOHN974 added this to the Audit and Hardening milestone Jun 16, 2025
@MCJOHN974 MCJOHN974 moved this from In Progress to Todo in sBTC Jun 17, 2025
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.

Clean memory of secret data before dropping

1 participant