Open palozano opened 10 months ago
Looks like this doesn't actually compile yet. Given that zeroize
is sth not everyone needs, I would also prefer this to be an optional feature.
It does compile, but maybe you can indicate if there are some improvements in the code, @dignifiedquire
This PR adds specific support for the Zeroize crate.
In particular, it allows the
PrivateKey
struct to deriveZeroize
.This translates into having the possibility to have secure PrivateKeys since they won't leak any information if the memory address is accessed after the variable is dropped.
The functionality relies on the fact that the crate
bls12_381
also implements Zeorize, so nothing in the API has changed.Solves #74