Remove NBitcoin.CouncyCastle.Math references
MODIFY
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
@@ -2,7 +2,6 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using NBitcoin.Crypto;
using NBitcoin.Protocol;
using NBitcoin.RPC;

MODIFY
WalletWasabi.Tests/RegressionTests/BackendTests.cs
WalletWasabi.Tests/RegressionTests/BackendTests.cs
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using NBitcoin.Crypto;
using NBitcoin.Protocol;
using NBitcoin.RPC;

MODIFY
WalletWasabi.Tests/RegressionTests/DosTests.cs
WalletWasabi.Tests/RegressionTests/DosTests.cs
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using NBitcoin.Crypto;
using NBitcoin.Protocol;
using NBitcoin.RPC;

MODIFY
WalletWasabi.Tests/RegressionTests/WalletTests.cs
WalletWasabi.Tests/RegressionTests/WalletTests.cs
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using NBitcoin.Crypto;
using NBitcoin.Protocol;
using NBitcoin.RPC;

MODIFY
WalletWasabi/CoinJoin/Client/Clients/AliceClient.cs
WalletWasabi/CoinJoin/Client/Clients/AliceClient.cs
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;

MODIFY
WalletWasabi/CoinJoin/Common/Models/ConnectionConfirmationResponse.cs
WalletWasabi/CoinJoin/Common/Models/ConnectionConfirmationResponse.cs
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;

MODIFY
WalletWasabi/CoinJoin/Common/Models/InputsResponse.cs
WalletWasabi/CoinJoin/Common/Models/InputsResponse.cs
-using NBitcoin.BouncyCastle.Math;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;

MODIFY
WalletWasabi/CoinJoin/Coordinator/Participants/Alice.cs
WalletWasabi/CoinJoin/Coordinator/Participants/Alice.cs
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using System;
using System.Collections.Generic;
using System.Linq;

DELETE
WalletWasabi/JsonConverters/BigIntegerJsonConverter.cs
-using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
-using Newtonsoft.Json;
-using System;
-using WalletWasabi.Helpers;
-
-namespace WalletWasabi.JsonConverters
-{
- public class BigIntegerJsonConverter : JsonConverter
- {
- /// <inheritdoc />
- public override bool CanConvert(Type objectType)
- {
- return objectType == typeof(BigInteger);
- }
-
- /// <inheritdoc />
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
- {
- var value = Guard.Correct((string)reader.Value);
-
- return string.IsNullOrWhiteSpace(value) ? default : new BigInteger(value);
- }
-
- /// <inheritdoc />
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
- {
- writer.WriteValue(((BigInteger)value).ToString());
- }
- }
-}

MODIFY
WalletWasabi/JsonConverters/GolombRiceFilterJsonConverter.cs
WalletWasabi/JsonConverters/GolombRiceFilterJsonConverter.cs
using NBitcoin;
-using NBitcoin.BouncyCastle.Math;
using NBitcoin.DataEncoders;
using Newtonsoft.Json;
using System;

Remove NBitcoin.CouncyCastle.Math references