Crate fastcrypto_derive
source ·Expand description
This crate contains the SilentDebug
and SilentDisplay
derive macros.
which help to avoid accidentally printing sensitive data.
Imported from diem-crypto-derive@0.0.3
https://github.com/diem/diem/blob/release-1.4.3/crypto/crypto-derive/src/lib.rs#L113
Derive Macros
- Extend implementations of Add, Sub, MulGroupElement::ScalarType and Neg into implementations of Add, Sub, Neg, AddAssign, SubAssign and MulAssign for all combinations of borrowed and owned inputs.
- Derive the
SilentDebug
trait, which is an implementation ofDebug
that does not print the contents of the struct. This is useful for structs that contain sensitive data, such as private keys. - Derive the
SilentDisplay
trait, which is an implementation ofDisplay
that does not print the contents of the struct. This is useful for structs that contain sensitive data, such as private keys.