Skip to content

Commit

Permalink
fix: oversight in signer, save keys after generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Sep 27, 2023
1 parent 434b33c commit 6b04afb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ impl Signer {
Some(pk.export_encrypted(pass, GLOBALS.storage.read_setting_log_n())?);
*self.public.write() = Some(pk.public_key());
*self.private.write() = Some(pk);

// and eventually save
task::spawn(async move {
if let Err(e) = GLOBALS.signer.save().await {
tracing::error!("{}", e);
}
});

Ok(())
}

Expand Down

0 comments on commit 6b04afb

Please sign in to comment.