w3f / bls

Aggregatable BLS sigantures
65 stars 15 forks source link

Implement `ZeroizeOnDrop` for `SecretKeyVT` #74

Open dima74 opened 4 months ago

dima74 commented 4 months ago

Would be nice to leverage zeroize crate (already in dependencies) to zeroizing secret keys on drop.

E.g. similar to ed25519-dalek:

impl Drop for SecretKeyVT {
    fn drop(&mut self) {
        self.0.zeroize();
    }
}

impl ZeroizeOnDrop for SecretKeyVT {}