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ยง

GroupOpsExtend
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.
SilentDebug
Derive the SilentDebug trait, which is an implementation of Debug that does not print the contents of the struct. This is useful for structs that contain sensitive data, such as private keys.
SilentDisplay
Derive the SilentDisplay trait, which is an implementation of Display that does not print the contents of the struct. This is useful for structs that contain sensitive data, such as private keys.