|
@@ -13,6 +13,7 @@ use cdk_common::database::WalletDatabase;
|
|
|
use cdk_common::wallet::{Transaction, TransactionDirection, WalletKey};
|
|
|
use tokio::sync::RwLock;
|
|
|
use tracing::instrument;
|
|
|
+use zeroize::Zeroize;
|
|
|
|
|
|
use super::receive::ReceiveOptions;
|
|
|
use super::send::{PreparedSend, SendOptions};
|
|
@@ -368,3 +369,9 @@ impl MultiMintWallet {
|
|
|
wallet.verify_token_dleq(token).await
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+impl Drop for MultiMintWallet {
|
|
|
+ fn drop(&mut self) {
|
|
|
+ self.seed.zeroize();
|
|
|
+ }
|
|
|
+}
|