Skip to content

Conversation

@crodriguezvega
Copy link
Contributor

A refactor of zeroization implementations for both SecretKey and SecurePlaintext to use the derive macro #[derive(Zeroize, ZeroizeOnDrop)] instead of manual implementations.

The derive macro generates code that delegates to the inner type's Zeroize implementation. Since both Scalar (via DefaultIsZeroes trait) and Vec<u8> already implement Zeroize correctly, there is no need to write custom implementations.

@XuyangSong XuyangSong changed the base branch from main to develop November 19, 2025 03:47
@XuyangSong XuyangSong merged commit 03a521c into anoma:develop Nov 19, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Triage to Released in Anoma SDK - What's Cooking Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

2 participants