Use Hashes.DoubleSHA256 instead of the obsolete method Hashes.Hash256
MODIFY
WalletWasabi.Tests/UnitTests/BitcoinCore/IndexBuilderServiceTests.cs
WalletWasabi.Tests/UnitTests/BitcoinCore/IndexBuilderServiceTests.cs
@@ -145,7 +145,7 @@ namespace WalletWasabi.Tests.UnitTests.BitcoinCore
private static uint256 BlockHashFromHeight(uint height)
{
- return Hashes.Hash256(BitConverter.GetBytes(height));
+ return Hashes.DoubleSHA256(BitConverter.GetBytes(height));
}
}
}

MODIFY
WalletWasabi.Tests/UnitTests/Crypto/BlindingTests.cs
WalletWasabi.Tests/UnitTests/Crypto/BlindingTests.cs
@@ -64,7 +64,7 @@ namespace WalletWasabi.Tests.UnitTests.Crypto
requester = new Requester();
signer = new Signer(new Key());
- message = NBitcoin.Crypto.Hashes.Hash256(Encoders.ASCII.DecodeData("Hello world!"));
+ message = NBitcoin.Crypto.Hashes.DoubleSHA256(Encoders.ASCII.DecodeData("Hello world!"));
blindedMessage = requester.BlindMessage(message, r.PubKey, signer.Key.PubKey);
blindSignature = signer.Sign(blindedMessage, r);

MODIFY
WalletWasabi/Helpers/NBitcoinHelpers.cs
WalletWasabi/Helpers/NBitcoinHelpers.cs
@@ -136,7 +136,7 @@ namespace WalletWasabi.Helpers
hash = new byte[32];
await fs.ReadAsync(hash, 0, 32);
}
- var actual = Hashes.Hash256(data);
+ var actual = Hashes.DoubleSHA256(data);
var expected = new uint256(hash);
if (expected != actual)
{

Use Hashes.DoubleSHA256 instead of the obsolete method Hashes.Hash256