diff --git a/README.md b/README.md index 037fc09..fcd6ea5 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,42 @@ -SilentDragon desktop wallet for HUSH ($HUSH) that runs on Linux, Windows and macOS. +# SilentDragon + +SilentDragon desktop wallet for HUSH ($HUSH) runs on Linux, Windows and macOS. +This is experimental software under active development! ![Screenshots](silentdragon.png?raw=true) + +## PRIVACY NOTICE + +SilentDragon contacts a few different external websites to get various +bits of data. + * coingecko.com for price data API + * explorer.myhush.org for explorer links + * dexstats.info for address utilities + +This means your IP address is known to these servers. Enable Tor setting +in SilentDragon to prevent this, or better yet, use TAILS: https://tails.boum.org/ + # Installation Head over to the releases page and grab the latest installers or binary. https://github.com/MyHush/SilentDragon/releases ## hushd -SilentDragon needs a Hush full node running hushd. If you already have a hushd node running, SilentDragon will connect to it. -If you don't have one, SilentDragon will start its embedded hushd node. +SilentDragon needs a Hush full node running hushd. If you already have a hushd node running, SilentDragon will connect to it. + +If you don't have one, SilentDragon will start its embedded hushd node. -Additionally, if this is the first time you're running SilentDragon or a hushd daemon, SilentDragon will download the zcash params (~1.7 GB) and configure `HUSH3.conf` for you. +Additionally, if this is the first time you're running SilentDragon or a hushd daemon, SilentDragon will find Sapling params (~50 MB) and configure `HUSH3.conf` for you. Pass `--no-embedded` to disable the embedded hushd and force SilentDragon to connect to an external node. ## Compiling from source -SilentDragon is written in C++ 14, and can be compiled with g++/clang++/visual c++. It also depends on Qt5, which you can get from [here](https://www.qt.io/download). Note that if you are compiling from source, you won't get the embedded hushd by default. You can either run an external hushd, or compile hushd as well. + +SilentDragon is written in C++ 14, and can be compiled with g++/clang++/visual +c++. It also depends on Qt5, which you can get from +[here](https://www.qt.io/download). Note that if you are compiling from source, +you won't get the embedded hushd by default. You can either run an external +hushd, or compile hushd as well. ### Building on Linux diff --git a/res/zec_qt_wallet_de.ts b/res/zec_qt_wallet_de.ts index 9598d77..3dd3d1f 100644 --- a/res/zec_qt_wallet_de.ts +++ b/res/zec_qt_wallet_de.ts @@ -31,7 +31,7 @@ ConnectionDialog - ZecWallet + SilentDragon SilentDragon @@ -44,7 +44,7 @@ MainWindow - ZecWallet + SilentDragon Silentdragon @@ -426,7 +426,7 @@ - Connection over Tor has been enabled. To use this feature, you need to restart ZecWallet. + Connection over Tor has been enabled. To use this feature, you need to restart SilentDragon. Die Verbindung über Tor wurde aktiviert. Um Tor zu benutzen starten Sie bitte Silentdragon neu. @@ -436,12 +436,12 @@ - Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart ZecWallet. + Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart SilentDragon. Die Verbindung über Tor wurde deaktiviert. Um die Verbingung zu Tor endgültig zu beenden, starten Sie bitte Silentdragon neu - Thanks for supporting ZecWallet! + Thanks for supporting SilentDragon! Danke dass Sie Silentdragon unterstützen @@ -451,7 +451,7 @@ - to support ZecWallet + to support SilentDragon um Silentdragon zu unterstützen @@ -482,12 +482,12 @@ - ZecWallet needs to restart to rescan/reindex. ZecWallet will now close, please restart ZecWallet to continue + SilentDragon needs to restart to rescan/reindex. SilentDragon will now close, please restart SilentDragon to continue Silentdragon muss für den Rescan/Reindex neu gestartet werden. Silentdragon wird nun schließen, bitte starten Sie Silentdragon neu um fortzufahren - Restart ZecWallet + Restart SilentDragon Starte Silentdragon neu @@ -763,7 +763,7 @@ doesn't look like a z-address - Allow connections over the internet via ZecWallet wormhole + Allow connections over the internet via SilentDragon wormhole Erlaube Verbindungen über das Internet via Silentdragon Wurmloch @@ -847,7 +847,7 @@ doesn't look like a z-address ConnectionDialog - ZecWallet + SilentDragon SilentDragon @@ -860,7 +860,7 @@ doesn't look like a z-address MainWindow - ZecWallet + SilentDragon Silentdragon @@ -1242,7 +1242,7 @@ doesn't look like a z-address - Connection over Tor has been enabled. To use this feature, you need to restart ZecWallet. + Connection over Tor has been enabled. To use this feature, you need to restart SilentDragon. Die Verbindung über Tor wurde aktiviert. Um Tor zu benutzen starten Sie bitte Silentdragon neu. @@ -1252,12 +1252,12 @@ doesn't look like a z-address - Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart ZecWallet. + Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart SilentDragon. Die Verbindung über Tor wurde deaktiviert. Um die Verbingung zu Tor endgültig zu beenden, starten Sie bitte Silentdragon neu - Thanks for supporting ZecWallet! + Thanks for supporting SilentDragon! Danke dass Sie Silentdragon unterstützen @@ -1267,7 +1267,7 @@ doesn't look like a z-address - to support ZecWallet + to support SilentDragon um Silentdragon zu unterstützen @@ -1298,12 +1298,12 @@ doesn't look like a z-address - ZecWallet needs to restart to rescan/reindex. ZecWallet will now close, please restart ZecWallet to continue + SilentDragon needs to restart to rescan/reindex. SilentDragon will now close, please restart SilentDragon to continue Silentdragon muss für den Rescan/Reindex neu gestartet werden. Silentdragon wird nun schließen, bitte starten Sie Silentdragon neu um fortzufahren - Restart ZecWallet + Restart SilentDragon Starte Silentdragon neu @@ -1579,7 +1579,7 @@ doesn't look like a z-address - Allow connections over the internet via ZecWallet wormhole + Allow connections over the internet via SilentDragon wormhole Erlaube Verbindungen über das Internet via Silentdragon Wurmloch @@ -1641,9 +1641,9 @@ doesn't look like a z-address - You have hushd set to start as a daemon, which can cause problems with ZecWallet + You have hushd set to start as a daemon, which can cause problems with SilentDragon -.Please remove the following line from your zcash.conf and restart ZecWallet +.Please remove the following line from your zcash.conf and restart SilentDragon daemon=1 Sie haben hushd im Hintergrund gestartet, was zu Problemen führen kann. Bitte löschen Sie folgende Zeile aus Ihrer Hush3.conf: daemon=1 @@ -2527,9 +2527,9 @@ You either have unconfirmed funds or the balance is too low for an automatic mig - You have hushd set to start as a daemon, which can cause problems with ZecWallet + You have hushd set to start as a daemon, which can cause problems with SilentDragon -.Please remove the following line from your zcash.conf and restart ZecWallet +.Please remove the following line from your zcash.conf and restart SilentDragon daemon=1 Sie haben hushd im Hintergrund gestartet, was zu Problemen führen kann. Bitte löschen Sie folgende Zeile aus Ihrer Hush3.conf: daemon=1 diff --git a/res/zec_qt_wallet_es.ts b/res/zec_qt_wallet_es.ts index 976174f..cf10707 100644 --- a/res/zec_qt_wallet_es.ts +++ b/res/zec_qt_wallet_es.ts @@ -31,8 +31,8 @@ ConnectionDialog - ZecWallet - ZecWallet + SilentDragon + SilentDragon @@ -44,8 +44,8 @@ MainWindow - ZecWallet - ZecWallet + SilentDragon + SilentDragon @@ -426,7 +426,7 @@ - Connection over Tor has been enabled. To use this feature, you need to restart ZecWallet. + Connection over Tor has been enabled. To use this feature, you need to restart SilentDragon. @@ -436,13 +436,13 @@ - Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart ZecWallet. + Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart SilentDragon. - Thanks for supporting ZecWallet! - Gracias por apoyar ZecWallet! + Thanks for supporting SilentDragon! + Gracias por apoyar SilentDragon! @@ -451,8 +451,8 @@ - to support ZecWallet - para apoyar ZecWallet + to support SilentDragon + para apoyar SilentDragon @@ -482,12 +482,12 @@ - ZecWallet needs to restart to rescan/reindex. ZecWallet will now close, please restart ZecWallet to continue + SilentDragon needs to restart to rescan/reindex. SilentDragon will now close, please restart SilentDragon to continue - Restart ZecWallet + Restart SilentDragon @@ -763,7 +763,7 @@ doesn't look like a z-address - Allow connections over the internet via ZecWallet wormhole + Allow connections over the internet via SilentDragon wormhole @@ -1019,12 +1019,12 @@ Por favor, especificar el host/puerta y usario/contraseña en el menú Editar-&g - You have hushd set to start as a daemon, which can cause problems with ZecWallet + You have hushd set to start as a daemon, which can cause problems with SilentDragon -.Please remove the following line from your zcash.conf and restart ZecWallet +.Please remove the following line from your zcash.conf and restart SilentDragon daemon=1 - Has configurado hushd para ejecutar como demonio, lo que puede causar problemas con ZecWallet. -Por favor, eliminar la siguente linea de hushd.conf y reinicia ZecWallet + Has configurado hushd para ejecutar como demonio, lo que puede causar problemas con SilentDragon. +Por favor, eliminar la siguente linea de hushd.conf y reinicia SilentDragon daemon=1 diff --git a/res/zec_qt_wallet_fr.ts b/res/zec_qt_wallet_fr.ts index 339ef6e..7e66eb5 100644 --- a/res/zec_qt_wallet_fr.ts +++ b/res/zec_qt_wallet_fr.ts @@ -31,7 +31,7 @@ ConnectionDialog - ZecWallet + SilentDragon SilentDragon @@ -44,7 +44,7 @@ MainWindow - ZecWallet + SilentDragon SilentDragon @@ -431,8 +431,8 @@ - Connection over Tor has been enabled. To use this feature, you need to restart ZecWallet. - La connection via Tor est activée. Afin d'utiliser cette fonctionnalité, veuillez redémarer ZecWallet. + Connection over Tor has been enabled. To use this feature, you need to restart SilentDragon. + La connection via Tor est activée. Afin d'utiliser cette fonctionnalité, veuillez redémarer SilentDragon. @@ -441,8 +441,8 @@ - Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart ZecWallet. - La connection via Tor a été désactivée. Afin de complètement se déconnecter de Tor, vous devez redémarrer ZecWallet. + Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart SilentDragon. + La connection via Tor a été désactivée. Afin de complètement se déconnecter de Tor, vous devez redémarrer SilentDragon. @@ -782,7 +782,7 @@ Cette adresse ne semble pas être de type z-Adresse - Allow connections over the internet via ZecWallet wormhole + Allow connections over the internet via SilentDragon wormhole @@ -844,13 +844,13 @@ Cette adresse ne semble pas être de type z-Adresse - You have hushd set to start as a daemon, which can cause problems with ZecWallet + You have hushd set to start as a daemon, which can cause problems with SilentDragon -.Please remove the following line from your zcash.conf and restart ZecWallet +.Please remove the following line from your zcash.conf and restart SilentDragon daemon=1 - vous avez hushd configuré pour démarrer en tant que démon ce qui peut causer des problèmes avec ZecWallet + vous avez hushd configuré pour démarrer en tant que démon ce qui peut causer des problèmes avec SilentDragon - Veuillez enlever la ligne suivante de votre fichier "zcash.conf" et redémarrer ZecWallet: + Veuillez enlever la ligne suivante de votre fichier "zcash.conf" et redémarrer SilentDragon: daemon=1 diff --git a/res/zec_qt_wallet_it.ts b/res/zec_qt_wallet_it.ts index 705510e..1c5e604 100644 --- a/res/zec_qt_wallet_it.ts +++ b/res/zec_qt_wallet_it.ts @@ -31,8 +31,8 @@ ConnectionDialog - ZecWallet - ZecWallet + SilentDragon + SilentDragon @@ -44,8 +44,8 @@ MainWindow - ZecWallet - ZecWallet + SilentDragon + SilentDragon @@ -413,8 +413,8 @@ - Thanks for supporting ZecWallet! - Grazie per il tuo supporto a ZecWallet! + Thanks for supporting SilentDragon! + Grazie per il tuo supporto a SilentDragon! @@ -423,8 +423,8 @@ - to support ZecWallet - per supportare ZecWallet + to support SilentDragon + per supportare SilentDragon @@ -474,7 +474,7 @@ - Connection over Tor has been enabled. To use this feature, you need to restart ZecWallet. + Connection over Tor has been enabled. To use this feature, you need to restart SilentDragon. @@ -484,17 +484,17 @@ - Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart ZecWallet. + Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart SilentDragon. - ZecWallet needs to restart to rescan/reindex. ZecWallet will now close, please restart ZecWallet to continue + SilentDragon needs to restart to rescan/reindex. SilentDragon will now close, please restart SilentDragon to continue - Restart ZecWallet + Restart SilentDragon @@ -773,7 +773,7 @@ doesn't look like a z-address - Allow connections over the internet via ZecWallet wormhole + Allow connections over the internet via SilentDragon wormhole @@ -836,11 +836,11 @@ doesn't look like a z-address - You have hushd set to start as a daemon, which can cause problems with ZecWallet + You have hushd set to start as a daemon, which can cause problems with SilentDragon -.Please remove the following line from your zcash.conf and restart ZecWallet +.Please remove the following line from your zcash.conf and restart SilentDragon daemon=1 - Hai hushd impostato per l'avvio come daemon, che può causare problemi con ZecWallet + Hai hushd impostato per l'avvio come daemon, che può causare problemi con SilentDragon YOUR_TRANSLATION_HERE diff --git a/res/zec_qt_wallet_pt.ts b/res/zec_qt_wallet_pt.ts index e85d7a4..2f0096f 100644 --- a/res/zec_qt_wallet_pt.ts +++ b/res/zec_qt_wallet_pt.ts @@ -31,8 +31,8 @@ ConnectionDialog - ZecWallet - ZecWallet + SilentDragon + SilentDragon @@ -44,8 +44,8 @@ MainWindow - ZecWallet - ZecWallet + SilentDragon + SilentDragon @@ -426,7 +426,7 @@ - Connection over Tor has been enabled. To use this feature, you need to restart ZecWallet. + Connection over Tor has been enabled. To use this feature, you need to restart SilentDragon. @@ -436,13 +436,13 @@ - Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart ZecWallet. + Connection over Tor has been disabled. To fully disconnect from Tor, you need to restart SilentDragon. - Thanks for supporting ZecWallet! - Obrigado por apoiar a ZecWallet! + Thanks for supporting SilentDragon! + Obrigado por apoiar a SilentDragon! @@ -451,8 +451,8 @@ - to support ZecWallet - para apoiar ZecWallet + to support SilentDragon + para apoiar SilentDragon @@ -482,12 +482,12 @@ - ZecWallet needs to restart to rescan/reindex. ZecWallet will now close, please restart ZecWallet to continue + SilentDragon needs to restart to rescan/reindex. SilentDragon will now close, please restart SilentDragon to continue - Restart ZecWallet + Restart SilentDragon @@ -765,7 +765,7 @@ não se parece com um z-Address - Allow connections over the internet via ZecWallet wormhole + Allow connections over the internet via SilentDragon wormhole @@ -827,12 +827,12 @@ não se parece com um z-Address - You have hushd set to start as a daemon, which can cause problems with ZecWallet + You have hushd set to start as a daemon, which can cause problems with SilentDragon -.Please remove the following line from your zcash.conf and restart ZecWallet +.Please remove the following line from your zcash.conf and restart SilentDragon daemon=1 - Você tem hushd configurado como daemon, o que pode causar problemas com a ZecWallet - Por favor, remova a seguinte linha do seu zcash.conf e reinicie a ZecWallet: + Você tem hushd configurado como daemon, o que pode causar problemas com a SilentDragon + Por favor, remova a seguinte linha do seu zcash.conf e reinicie a SilentDragon: daemon=1 diff --git a/src/connection.cpp b/src/connection.cpp index 046bd51..e1c0ec6 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -174,7 +174,7 @@ void ConnectionLoader::createZcashConf() { } main->logger->write("Creating file " + confLocation); - QDir().mkdir(fi.dir().absolutePath()); + QDir().mkpath(fi.dir().absolutePath()); QFile file(confLocation); if (!file.open(QIODevice::ReadWrite | QIODevice::Truncate)) { @@ -187,7 +187,7 @@ void ConnectionLoader::createZcashConf() { QTextStream out(&file); - out << "# Autogenerated by Silent Dragon\n"; + out << "# Autogenerated by Hush SilentDragon https://myhush.org\n"; out << "server=1\n"; out << "rpcuser=hush\n"; out << "rpcpassword=" % randomPassword() << "\n"; @@ -574,14 +574,31 @@ QString ConnectionLoader::zcashParamsDir() { bool ConnectionLoader::verifyParams() { QDir paramsDir(zcashParamsDir()); - qDebug() << "Verifying param files exist"; + qDebug() << "Verifying sapling param files exist"; - if (!QFile(paramsDir.filePath("sapling-output.params")).exists()) return false; - if (!QFile(paramsDir.filePath("sapling-spend.params")).exists()) return false; - qDebug() << "All param files found!"; + if( QFile( QDir(".").filePath("sapling-output.params") ).exists() && QFile( QDir(".").filePath("sapling-output.params") ).exists() ) { + qDebug() << "Found params in ."; + return true; + } - return true; + if( QFile( QDir("..").filePath("sapling-output.params") ).exists() && QFile( QDir("..").filePath("sapling-output.params") ).exists() ) { + qDebug() << "Found params in .."; + return true; + } + + if( QFile( QDir("..").filePath("hush3/sapling-output.params") ).exists() && QFile( QDir("..").filePath("hush3/sapling-output.params") ).exists() ) { + qDebug() << "Found params in ../hush3"; + return true; + } + + if (QFile(paramsDir.filePath("sapling-output.params")).exists() && QFile(paramsDir.filePath("sapling-spend.params")).exists()) { + qDebug() << "Found params in " << paramsDir; + return true; + } + + qDebug() << "Did not find Sapling params!"; + return false; } /** diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 34eb4db..8ecce08 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -1344,8 +1344,6 @@ - - @@ -1357,6 +1355,7 @@ + diff --git a/src/mobileappconnector.ui b/src/mobileappconnector.ui index 7115dac..c861ded 100644 --- a/src/mobileappconnector.ui +++ b/src/mobileappconnector.ui @@ -33,7 +33,7 @@ - Scan this QRCode from your ZecWallet companion app to connect your phone + Scan this QRCode from your SilentDragon companion app to connect your phone @@ -81,7 +81,7 @@ - Allow connections over the internet via ZecWallet wormhole + Allow connections over the internet via SilentDragon wormhole @@ -91,7 +91,7 @@ - ZecWallet Companion App + SilentDragon Companion App diff --git a/src/rpc.cpp b/src/rpc.cpp index 64e09e8..cde0b7a 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -773,12 +773,6 @@ void RPC::refreshAddresses() { delete taddresses; taddresses = newtaddresses; - - // If there are no t Addresses, create one - newTaddr([=] (json reply) { - // What if taddress gets deleted before this executes? - taddresses->append(QString::fromStdString(reply.get())); - }); }); }