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ยง
- Group
OpsExtend - 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.
- Silent
Debug - Derive the
SilentDebugtrait, which is an implementation ofDebugthat does not print the contents of the struct. This is useful for structs that contain sensitive data, such as private keys. - Silent
Display - Derive the
SilentDisplaytrait, which is an implementation ofDisplaythat does not print the contents of the struct. This is useful for structs that contain sensitive data, such as private keys.