whoops, a debug statement is leaking private info. nuke that.

This commit is contained in:
bunnie 2022-07-19 04:45:07 +08:00
parent d68e3c229d
commit 7b3c928429

View file

@ -1226,7 +1226,8 @@ impl<'a> RootKeys {
.zip(self.read_staged_key_256(KeyRomLocs::SELFSIGN_PUBKEY).iter()) {
*key = src;
}
log::info!("keypair_bytes {:x?}", keypair_bytes);
#[cfg(feature = "hazardous-debug")]
log::debug!("keypair_bytes {:x?}", keypair_bytes);
// Keypair zeroizes the secret key on drop.
let keypair = Keypair::from_bytes(&keypair_bytes).map_err(|_| RootkeyResult::KeyError)?;
#[cfg(feature = "hazardous-debug")]