clifordsymack / Electron-Cash

Electrum; Bitcoin thin client
MIT License
6 stars 3 forks source link

Implement command line shuffling functionality #58

Open imaginaryusername opened 5 years ago

imaginaryusername commented 5 years ago

Possible examples:

setshuffleplugin command: toggle whether the shuffle plugin is turned on for a given wallet via the cashshuffle_enabled flag in the wallet file. Mandatory -w option specifying wallet, and possibly -wp.

setshuffleserver command: set a custom global shuffle server. use like so: set shuffleserver <URL:port>

shuffle command: open a wallet in daemon and start automatically shuffling in the background. Mandatory -w and possibly -wp option. Does not do anything if cashshuffle_enabled is off for the wallet. shuffle off to remove wallet from daemon. Possibly redundant with load_wallet ; shuffle can be a shuffle-specific command that does not add the specified wallet to spending candidates.

-setshuffled option: toggle whether payto and paytomany will only use shuffled coins. Default: on (shuffled coins only), other options: off (unshuffled coins only). Generates an error if cashshuffle_enabled is off for a given wallet.

cculianu commented 5 years ago

This is very useful. Thank you for opening this issue. I want to do this soon -- perhaps after the audit is completed.