Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix to another wallet #12758

Merged
merged 41 commits into from May 9, 2024
Merged

Mix to another wallet #12758

merged 41 commits into from May 9, 2024

Conversation

Whem
Copy link
Collaborator

@Whem Whem commented Apr 2, 2024

fixes: #12695

@Whem Whem mentioned this pull request Apr 8, 2024
7 tasks
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 9, 2024
Copy link
Member

@MaxHillebrand MaxHillebrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on 842aeec

  1. load the sending wallet
  2. create a new wallet
  3. the newly created wallet does not show up in the output wallet dropdown of the sending wallet coinjoin settings.

it seems there is address reuse, with multiple payments to the same pubkey?

[43] INFO	PaymentBatch.AddPayment (36)	Payment df92e811-4674-44de-8a62-4be254976427 for 0.00059049 BTC to 0 f5e9cd2486bc11b9e1e8442f9d74fdbdc7057c17.
[43] INFO	PaymentBatch.AddPayment (36)	Payment 66acf83b-83ad-44e5-91f7-38c99f2404f6 for 0.00531441 BTC to 0 f5e9cd2486bc11b9e1e8442f9d74fdbdc7057c17.
[43] INFO	PaymentBatch.AddPayment (36)	Payment 7cacb2b2-c065-46aa-bf11-f0c4aa60a7a6 for 0.00531441 BTC to 0 f5e9cd2486bc11b9e1e8442f9d74fdbdc7057c17.

Copy link
Collaborator

@soosr soosr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first round of review

@Whem
Copy link
Collaborator Author

Whem commented Apr 23, 2024

on 842aeec

  1. load the sending wallet
  2. create a new wallet
  3. the newly created wallet does not show up in the output wallet dropdown of the sending wallet coinjoin settings.

Fixed

@MaxHillebrand
Copy link
Member

I still see multiple times the same pubkey for different payment requests in the log.

Are you sure that it generates a unique address for each destination output?

@Whem Whem requested a review from molnard May 6, 2024 13:49
Copy link
Collaborator

@molnard molnard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cACK.

Since it is not required to save the output wallet - you could try to use walletId - it will simplify the code.

WalletWasabi/Blockchain/Keys/KeyManager.cs Outdated Show resolved Hide resolved
@Whem Whem requested a review from molnard May 7, 2024 12:45
@Whem Whem changed the title [WIP] Mix to another wallet Mix to another wallet May 7, 2024
@molnard
Copy link
Collaborator

molnard commented May 7, 2024

@lontivero can you take a look at this change? 743c0e0

We also need to set the consolidation mode, for the same reason as you did in the RPC. I made it "automatic". This is the solution with the less diff.

@turbolay
Copy link
Collaborator

turbolay commented May 8, 2024

I made a review in the other PR that got merged. Sending notification here as well #12997 (review)

Just nits, the actual logic and code seems great to me. PR is nice.

Copy link
Collaborator

@soosr soosr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@soosr soosr merged commit 82d8e26 into zkSNACKs:master May 9, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mix to Other Wallet
5 participants