Setup default config
MODIFY
HiddenWallet.Daemon/Config.cs
HiddenWallet.Daemon/Config.cs
@@ -61,9 +61,9 @@ namespace HiddenWallet.Daemon
WalletFilePath = Path.Combine(FullSpvWallet.Global.DataDir, "Wallets", "Wallet.json");
Network = Network.Main;
CanSpendUnconfirmed = false;
- ChaumianTumblerTestNetAddress = "http://i4dmqjdw2nljsyt3.onion/"; // TODO: change it when active tumbler had been set up
+ ChaumianTumblerTestNetAddress = "http://uitzert24go64ure.onion/";
ChaumianTumblerMainAddress = "http://i4dmqjdw2nljsyt3.onion/"; // TODO: change it when active tumbler had been set up
- ChaumianTumblerTestNetNotificationAddress = "http://localhost:80/"; // TODO: change it when active tumbler had been set up
+ ChaumianTumblerTestNetNotificationAddress = "http://hiddenwallet.org/";
ChaumianTumblerMainNotificationAddress = "http://localhost:80/"; // TODO: change it when active tumbler had been set up
if (!File.Exists(path))

MODIFY
HiddenWallet.Daemon/Program.cs
HiddenWallet.Daemon/Program.cs
@@ -29,11 +29,11 @@ namespace HiddenWallet.Daemon
string rsaPath;
if (Global.Config.Network == Network.Main)
{
- rsaPath = Path.Combine(FullSpvWallet.Global.DataDir, "RsaPubKeyTestNet.json");
+ rsaPath = Path.Combine(FullSpvWallet.Global.DataDir, "RsaPubKeyMain.json");
}
else
{
- rsaPath = Path.Combine(FullSpvWallet.Global.DataDir, "RsaPubKeyMain.json");
+ rsaPath = Path.Combine(FullSpvWallet.Global.DataDir, "RsaPubKeyTestNet.json");
}
if (File.Exists(rsaPath))
{
@@ -43,7 +43,7 @@ namespace HiddenWallet.Daemon
else
{
// TODO: change these default values to the default testnet and mainnet server's keys
- var modulus = new BigInteger("23589394558000769094389882515724018755668807942927294461300128316443908394269505275903255579660647420728395606511481595615274221757680896183302901501925850296754719819863284461202461933453035616403571429927625259423834885626633643917138260424572248721156753288868407467908326062046250434581856159002739075698923536178721479169980865352795356860391627279931218179034394535213633628061061525586225808965225547470074014895411041599390841768961511372955835648824597673786292957294962958948903155018531955318632198851755013447911244491178476628417300289292303120213670519763639881558155258131869186859524584048386096963449");
+ var modulus = new BigInteger("23765292524202909590312633661559508105372542245888884022732405845352867619510400148700590630819909854245443768683013002454300998561366066863075543900854183218255556958603829744574143217473373221883959779439395079947766381668459828953701726054394843911847063235903761918014727346563249795000296937701840334243492972569641205615480654015909880231725449975599905030093854844840930446509242634799081158992191062980583060919718404098183279802755923836822248873360647411342760279712271227024615021525054883324946175934075264032794034681653369283673040524060792800105336875314739176592340110027306283977215862005685674572993");
var exponent = new BigInteger("65537");
Global.RsaPubKey = new BlindingRsaPubKey(modulus, exponent);
await File.WriteAllTextAsync(rsaPath, Global.RsaPubKey.ToJson(), Encoding.UTF8);

MODIFY
HiddenWallet.Daemon/Wrappers/WalletWrapper.cs
HiddenWallet.Daemon/Wrappers/WalletWrapper.cs
@@ -210,8 +210,8 @@ namespace HiddenWallet.Daemon.Wrappers
else _receiveResponseBob.Addresses[i] = "";
}
- _receiveResponseAlice.TraditionalAddress = (await _walletJob.GetUnusedScriptPubKeysAsync(AddressType.Pay2PublicKeyHash, AliceAccount, HdPathType.Receive)).FirstOrDefault().GetDestinationAddress(network).ToString();
- _receiveResponseBob.TraditionalAddress = (await _walletJob.GetUnusedScriptPubKeysAsync(AddressType.Pay2PublicKeyHash, BobAccount, HdPathType.Receive)).FirstOrDefault().GetDestinationAddress(network).ToString();
+ _receiveResponseAlice.TraditionalAddress = (await WalletJob.GetUnusedScriptPubKeysAsync(AddressType.Pay2PublicKeyHash, AliceAccount, HdPathType.Receive)).FirstOrDefault().GetDestinationAddress(network).ToString();
+ _receiveResponseBob.TraditionalAddress = (await WalletJob.GetUnusedScriptPubKeysAsync(AddressType.Pay2PublicKeyHash, BobAccount, HdPathType.Receive)).FirstOrDefault().GetDestinationAddress(network).ToString();
}
private void _walletJob_StateChanged(object sender, EventArgs e)
{

Setup default config