Swap-id as file name for generated Monero wallet

Instead of using the private view-key as wallet filename we use the swap-id, to be able to identify which wallet is associated with which swap.
This commit is contained in:
Daniel Karzel 2021-04-08 15:35:21 +10:00
parent 548f057726
commit 489696ee08
No known key found for this signature in database
GPG key ID: 30C3FC2E438ADB6E
4 changed files with 27 additions and 6 deletions

View file

@ -287,6 +287,7 @@ impl Client {
pub async fn generate_from_keys(
&self,
filename: &str,
address: &str,
spend_key: &str,
view_key: &str,
@ -294,7 +295,7 @@ impl Client {
) -> Result<GenerateFromKeys> {
let params = GenerateFromKeysParams {
restore_height,
filename: view_key.into(),
filename: filename.into(),
address: address.into(),
spendkey: spend_key.into(),
viewkey: view_key.into(),