Disable server-side NBitcoin.Script validation
MODIFY
WalletWasabi/Crypto/Bip322Signature.cs
WalletWasabi/Crypto/Bip322Signature.cs
using System;
using NBitcoin;
+using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
namespace WalletWasabi.Crypto
{
@@ -17,8 +18,10 @@ namespace WalletWasabi.Crypto
{
}
+ [ValidateNever]
public Script ScriptSig => _scriptSig;
+ [ValidateNever]
public WitScript Witness { get; private set; } = WitScript.Empty;
public void ReadWrite(BitcoinStream bitcoinStream)

MODIFY
WalletWasabi/WabiSabi/Models/OutputRegistrationRequest.cs
WalletWasabi/WabiSabi/Models/OutputRegistrationRequest.cs
using System;
using NBitcoin;
using WalletWasabi.WabiSabi.Crypto.CredentialRequesting;
+using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
namespace WalletWasabi.WabiSabi.Models
{
public record OutputRegistrationRequest(
uint256 RoundId,
- Script Script,
+ [ValidateNever] Script Script,
RealCredentialsRequest AmountCredentialRequests,
RealCredentialsRequest VsizeCredentialRequests
);

Disable server-side NBitcoin.Script validation