mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-17 10:41:22 -04:00
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:
parent
548f057726
commit
489696ee08
4 changed files with 27 additions and 6 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue