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

feature request: allow sweeping funds to multiple addresses during recovery #8

Open
josibake opened this issue Mar 21, 2022 · 0 comments

Comments

@josibake
Copy link

josibake commented Mar 21, 2022

instead of only allowing a single destination address, allow users to provide an array of addresses, i.e ['bc1pa..', 'bc1pb..',].

ideally, allow addresses and amounts, ['bc1pa..': 6.15, 'bc1pb..': 21,], so long as the user provides at least one address with no amount specified. this is similar to the behavior of the proposed bitcoin core RPC sendall: bitcoin/bitcoin#24118

why?

much better for privacy, as transactions can be made to look like a coinjoin / batch exchange withdrawal, etc. sweeping all funds to a single address is bad for privacy as it reveals common ownership of the UTXOs and leaks the wallet balance. this also can be great for usability as sometimes when migrating from wallet to another, it's better to start out with multiple UTXOs of different sizes vs one giant UTXO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@josibake and others