Skip to main content

impl_debug_display_redacted

Macro impl_debug_display_redacted 

Source
macro_rules! impl_debug_display_redacted {
    ($type:ty) => { ... };
}
Expand description

Impls Debug + Display with secret values redacted. Useful for preventing the accidental leakage of secrets in logs. Can technically be used for non ByteArray types as well.

lexe_byte_array::impl_debug_display_redacted!(PaymentSecret);