Secrets such as Private Keys must remain in memory for as little as possible to minimize chances of extraction via side-channels and similar methods. They must also never be logged.
All such types in the repo should implement Zeroize, so that they're written with 0's once they're dropped (or manually zeroized), and they should be wrapped with Secret so that they're not accidentally logged. The internal type can be accessed via ExposeSecret.
Secrets such as Private Keys must remain in memory for as little as possible to minimize chances of extraction via side-channels and similar methods. They must also never be logged.
All such types in the repo should implement
Zeroize, so that they're written with 0's once they're dropped (or manually zeroized), and they should be wrapped withSecretso that they're not accidentally logged. The internal type can be accessed viaExposeSecret.