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

chore: protect public key zeroization against updates #235

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

AaronFeickert
Copy link
Contributor

@AaronFeickert AaronFeickert commented Sep 20, 2024

Ristretto public key zeroizing is done manually due to the use of OnceCell. I recently came across a clever design pattern that uses destructuring. The idea is that future changes to the underlying struct will trigger a compiler error to ensure that the zeroization implementation is also updated.

This PR implements such a change.

@SWvheerden SWvheerden merged commit 998c91a into tari-project:main Oct 13, 2024
5 checks passed
@AaronFeickert AaronFeickert deleted the public-key-zeroize branch October 13, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants