Fix typos & grammar
MODIFY
WalletWasabi.Tests/UnitTests/WalletDirTests.cs
WalletWasabi.Tests/UnitTests/WalletDirTests.cs
@@ -39,7 +39,7 @@ namespace WalletWasabi.Tests.UnitTests
}
[Fact]
- public async Task CorrestWalletDirectoryNameAsync()
+ public async Task CorrectWalletDirectoryNameAsync()
{
var baseDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName(), EnvironmentHelpers.GetMethodName());
(string walletsPath, string walletsBackupPath) = await CleanupWalletDirectoriesAsync(baseDir);

MODIFY
WalletWasabi/BitcoinCore/Rpc/CachedRpcClient.cs
WalletWasabi/BitcoinCore/Rpc/CachedRpcClient.cs
@@ -59,7 +59,7 @@ namespace WalletWasabi.BitcoinCore.Rpc
var cacheOptions = new MemoryCacheEntryOptions
{
Size = 10,
- AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(4) // There is a block every 10 minutes in average so, keep in cache for 4 seconds.
+ AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(4) // There is a block every 10 minutes on average so, keep in cache for 4 seconds.
};
return await Cache.AtomicGetOrCreateAsync(
@@ -74,7 +74,7 @@ namespace WalletWasabi.BitcoinCore.Rpc
var cacheOptions = new MemoryCacheEntryOptions
{
Size = 10,
- AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(4) // There is a block every 10 minutes in average so, keep in cache for 4 seconds.
+ AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(4) // There is a block every 10 minutes on average so, keep in cache for 4 seconds.
};
return await Cache.AtomicGetOrCreateAsync(
@@ -89,7 +89,7 @@ namespace WalletWasabi.BitcoinCore.Rpc
var cacheOptions = new MemoryCacheEntryOptions
{
Size = 2,
- AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(4) // There is a block every 10 minutes in average so, keep in cache for 4 seconds.
+ AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(4) // There is a block every 10 minutes on average so, keep in cache for 4 seconds.
};
return await Cache.AtomicGetOrCreateAsync(

MODIFY
WalletWasabi/Blockchain/Keys/WalletGenerator.cs
WalletWasabi/Blockchain/Keys/WalletGenerator.cs
@@ -39,7 +39,8 @@ namespace WalletWasabi.Blockchain.Keys
throw new ArgumentException("Wallet name is already taken.");
}
- PasswordHelper.Guard(password); // Here we are not letting anything that will be autocorrected later. We need to generate the wallet exactly with the entered password bacause of compatibility.
+ // Here we are not letting anything that will be autocorrected later. We need to generate the wallet exactly with the entered password because of compatibility.
+ PasswordHelper.Guard(password);
var km = KeyManager.CreateNew(out Mnemonic mnemonic, password);
km.SetNetwork(Network);

MODIFY
WalletWasabi/Crypto/Extensions.cs
WalletWasabi/Crypto/Extensions.cs
@@ -26,7 +26,7 @@ namespace System.Linq
}
}
- public static void CheckDimesions(this IEnumerable<Equation> equations, IEnumerable<ScalarVector> allResponses)
+ public static void CheckDimensions(this IEnumerable<Equation> equations, IEnumerable<ScalarVector> allResponses)
{
if (equations.Count() != allResponses.Count() ||
Enumerable.Zip(equations, allResponses).Any(x => x.First.Generators.Count() != x.Second.Count()))

MODIFY
WalletWasabi/Crypto/ZeroKnowledge/LinearRelation/Knowledge.cs
WalletWasabi/Crypto/ZeroKnowledge/LinearRelation/Knowledge.cs
@@ -29,7 +29,7 @@ namespace WalletWasabi.Crypto.ZeroKnowledge.LinearRelation
public IEnumerable<ScalarVector> RespondToChallenge(Scalar challenge, IEnumerable<ScalarVector> allSecretNonces)
{
// allSecretNonces should have the same dimension as the equation matrix
- Statement.Equations.CheckDimesions(allSecretNonces);
+ Statement.Equations.CheckDimensions(allSecretNonces);
return Statement.Equations.Zip(allSecretNonces, (equation, secretNonces) => equation.Respond(Witness, secretNonces, challenge));
}

MODIFY
WalletWasabi/Crypto/ZeroKnowledge/LinearRelation/Statement.cs
WalletWasabi/Crypto/ZeroKnowledge/LinearRelation/Statement.cs
@@ -35,7 +35,7 @@ namespace WalletWasabi.Crypto.ZeroKnowledge.LinearRelation
// The responses matrix should match the generators in the equations and
// there should be once nonce per equation.
Guard.True(nameof(publicNonces), Equations.Count() == publicNonces.Count());
- Equations.CheckDimesions(allResponses);
+ Equations.CheckDimensions(allResponses);
return Equations.Zip(publicNonces, allResponses, (equation, r, s) => equation.Verify(r, challenge, s)).All(x => x);
}
@@ -43,7 +43,7 @@ namespace WalletWasabi.Crypto.ZeroKnowledge.LinearRelation
public GroupElementVector SimulatePublicNonces(Scalar challenge, IEnumerable<ScalarVector> allGivenResponses)
{
// The responses matrix should match the generators in the equations and
- Equations.CheckDimesions(allGivenResponses);
+ Equations.CheckDimensions(allGivenResponses);
return new GroupElementVector(Enumerable.Zip(Equations, allGivenResponses, (e, r) => e.Simulate(challenge, r)));
}

MODIFY
WalletWasabi/Extensions/RPCClientExtensions.cs
WalletWasabi/Extensions/RPCClientExtensions.cs
@@ -188,7 +188,7 @@ namespace NBitcoin.RPC
var largeTargetFeeResult = await rpc.EstimateSmartFeeAsync(largeTarget, estimateMode, simulateIfRegTest, tolerateBitcoinCoreBrainfuck);
largeTargetFee = (int)Math.Ceiling(largeTargetFeeResult.FeeRate.SatoshiPerByte);
- // Blocks should be never larger than the target that we asked for, so it's just a sanity check.
+ // Blocks should never be larger than the target that we asked for, so it's just a sanity check.
largeTarget = Math.Min(largeTarget, largeTargetFeeResult.Blocks);
newEstimations.TryAdd(largeTarget, largeTargetFee);
}
@@ -197,7 +197,7 @@ namespace NBitcoin.RPC
var halfFeeResult = await rpc.EstimateSmartFeeAsync(halfTarget, estimateMode, simulateIfRegTest, tolerateBitcoinCoreBrainfuck);
int halfTargetFee = (int)Math.Ceiling(halfFeeResult.FeeRate.SatoshiPerByte);
- // Blocks should be never larger than the target that we asked for, so it's just a sanity check.
+ // Blocks should never be larger than the target that we asked for, so it's just a sanity check.
halfTarget = Math.Min(halfTarget, halfFeeResult.Blocks);
newEstimations.TryAdd(halfTarget, halfTargetFee);

MODIFY
WalletWasabi/Legal/Assets/LegalDocuments.txt
WalletWasabi/Legal/Assets/LegalDocuments.txt
@@ -258,7 +258,7 @@ COMPLIANCE WITH TAX OBLIGATIONS
COUNTRY OF RESIDENCE
====================
- In case if You are a Gibraltar resident and willing to use Wasabi Wallet please inform us in advance on the following e-mail address: legal@zksnacks.com.
+ In case You are a Gibraltar resident and willing to use Wasabi Wallet please inform us in advance on the following e-mail address: legal@zksnacks.com.
zkSNACKs Ltd.
Address: 6 Bayside Road 6.20 World Trade Center, Gibraltar, GX11 1AA

Fix typos & grammar