Skip to content

Conversation

@gilcu3
Copy link

@gilcu3 gilcu3 commented Dec 2, 2025

This PR adds support for zeroizing the Scalar values following the zeroize crate. Unfortunately the underlying type of the Scalar type in this crate blst_fr does not implement the Zeroize trait, so the PR implements it manually using unsafe code.

If the underlying type was blst_scalar, the task would have been trivial because that type does implement Zeroize. I know the difference between these two was discussed in the past: #10. Just wanted to mention that the lack of zeroize upstream for blst_fr seems to point to the fact that blst_scalar should have been used instead.

@DSharifi
Copy link

DSharifi commented Dec 8, 2025

@Stebalien is this something you could review?

@Stebalien
Copy link
Member

@Kubuxu this LGTM, but you'll have to merge/release.

NOTE: zeroize is already in the dependency tree.

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