Coinjoin service is suite
Testing against a public coordinator
Suite has no default coordinator for Bitcoin and Testnet. Coinjoin works only in the desktop app with Tor enabled, and signing needs firmware 2.7.2 or newer, or 1.13.0 or newer on Trezor Model One.
-
Run
yarn suite:dev:desktop. It also rebuilds the main process, where the coinjoin client runs. Quit the Electron app it opens (Cmd+Q on macOS), the dev server keeps running. -
Start Electron with the coordinator. Use
.test.instead of.btc.for Testnet. The override applies only to this launch.yarn workspace @suite/desktop-app dev:run \ '--state.wallet.coinjoin.debug.coinjoinConfigOverride.btc.coordinatorUrl=https://<coordinator>/wabisabi/' \ '--state.wallet.coinjoin.debug.coinjoinConfigOverride.btc.wabisabiBackendUrl=https://<coordinator>/'Override both urls. Without
wabisabiBackendUrlthe coordinator version is not requested and Suite reports stub values, so the debug panel links to a non-existent WalletWasabi build and the zkSNACKs legal documents version you agree to is a constant instead of the one the coordinator publishes.The main process whitelists only the coordinator host and its subdomains, so the backend url has to live there too. A sibling host (
api.example.comnext tocoord.example.com) is blocked withRequest blocked, not whitelisted domain.
Development
For development and e2e purposes you can use local version of coinjoin backend (Regtest only).
-
run
./docker/docker-coinjoin-backend.shIf you are using
trezor-user-envmake sure that it’s started with-roption (disabled regtest)Pull and run docker image of https://github.com/trezor/coinjoin-backend
Backend control panel (faucet) should be accessible at
http://localhost:8080/ -
Run suite, go to settings and enable
Debug mode(click 5 times on the “Settings” header) -
go to Settings > Crypto tab and enable
Bitcoin Regtestand set custom backend tohttp://localhost:19121/(default)Optionally disable other coins
Coinjoin accounts are not using this backend but you want to have all Regtest accounts synchronized with the same bitcoind
-
Access coinjoin account