This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Implement Zeroize for sp_core::sr25519::Pair #8130
Labels
A5-stale
Pull request did not receive any updates in a long time. No review needed at this stage. Close it.
J2-unconfirmed
Issue might be valid, but it’s not yet known.
The sp-core newtype wrapper for a sr25519 keypair (sr25519::Pair) can now impl Zeroize, as the earlier upgrade to a non pre-release version of dalek introduces support for zeroize on Scalars / keypair secrets.
Implementing Zeroize would allow users of this type to utilize other libraries like https://crates.io/crates/secrecy.
Note: it also looks like the manual implementation of Zeroize for KeyPair is no longer necessary: https://github.com/w3f/schnorrkel/blame/8fa2ad3e9fbf0b652c724df6a87a4b3c5500f759/src/keys.rs#L688
The text was updated successfully, but these errors were encountered: