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

Improve CreateDenominated and MakeCollateralAmounts #906

Merged
merged 2 commits into from
Jul 15, 2016
Merged

Improve CreateDenominated and MakeCollateralAmounts #906

merged 2 commits into from
Jul 15, 2016

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Jul 7, 2016

Some users might manage their receiving addresses carefully trying to avoid any links. The best way to do this is to use different wallets otherwise user might accidentally link them together when he sends funds without using CoinControl. Moreover currently it's not secure (privacy wise) to have all funds in one wallet and mix them because it's basically the same as sending without CoinControl. This PR should solve the problem by allowing wallet to create denoms and mixing collaterals only from funds within the same receiving address. This imo also eliminates the need to split creation of denoms in time so we can create all of them ahead of time now (step by step though). As for common users who don't care that much of linking previous unmixed funds - they will get privacy improvement "for free" imo, creating denoms this way should not negatively affect mixing time on average.

Changes:

  • should use funds only from the same receiving address
  • should denominate while has funds but has not enough denoms
  • slightly refactored to make code a bit more readable

@schinzelh
Copy link

Very nice, utACK

@UdjinM6
Copy link
Author

UdjinM6 commented Jul 13, 2016

Added few more improvements:

  • return change to the origin address to use it in future splits (should be less small denoms bloat)
  • fix a bug with incorrect overshoot
  • more debug (optional/errors only) and fixed var names

@schinzelh
Copy link

Needs a rebase :)

- should use funds only from the same receiving address
- should denominate while has funds but has not enough denoms
- slightly refactored
…nts:

- return change to the origin address to use it in future splits
- fix a bug with incorrect overshoot
- more debug (optional/errors only) and fixed var names
@UdjinM6
Copy link
Author

UdjinM6 commented Jul 15, 2016

rebased :)

@schinzelh schinzelh merged commit 113e56d into dashpay:v0.12.1.x Jul 15, 2016
@UdjinM6 UdjinM6 deleted the denominateByAddress branch August 28, 2016 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants