Remove ownership proof from ReadyToSign
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
@@ -153,7 +153,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
new[] { vsizeCred2, zeroVsizeCred2 },
CancellationToken.None);
- await aliceArenaClient.ReadyToSignAsync(round.Id, aliceId, key, CancellationToken.None);
+ await aliceArenaClient.ReadyToSignAsync(round.Id, aliceId, CancellationToken.None);
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
Assert.Equal(Phase.TransactionSigning, round.Phase);

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
@@ -402,12 +402,6 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.AliceNotFound, $"Round ({request.RoundId}): Alice id ({request.AliceId}).");
}
- var coinJoinInputCommitmentData = new CoinJoinInputCommitmentData("CoinJoinCoordinatorIdentifier", request.RoundId);
- if (!OwnershipProof.VerifyCoinJoinInputProof(request.OwnershipProof, alice.Coin.TxOut.ScriptPubKey, coinJoinInputCommitmentData))
- {
- throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.WrongOwnershipProof);
- }
-
if (alice.ReadyToSign)
{
Prison.Ban(alice, round.Id);

MODIFY
WalletWasabi/WabiSabi/Client/AliceClient.cs
WalletWasabi/WabiSabi/Client/AliceClient.cs
@@ -119,7 +119,7 @@ namespace WalletWasabi.WabiSabi.Client
public async Task ReadyToSignAsync(CancellationToken cancellationToken)
{
- await ArenaClient.ReadyToSignAsync(RoundId, (Guid)AliceId, BitcoinSecret.PrivateKey, cancellationToken).ConfigureAwait(false);
+ await ArenaClient.ReadyToSignAsync(RoundId, (Guid)AliceId, cancellationToken).ConfigureAwait(false);
Logger.LogInfo($"Round ({RoundId}), Alice ({AliceId}): Ready to sign.");
}
}

MODIFY
WalletWasabi/WabiSabi/Client/ArenaClient.cs
WalletWasabi/WabiSabi/Client/ArenaClient.cs
@@ -226,18 +226,12 @@ namespace WalletWasabi.WabiSabi.Client
public async Task ReadyToSignAsync(
uint256 roundId,
Guid aliceId,
- Key key,
CancellationToken cancellationToken)
{
- var ownershipProof = OwnershipProof.GenerateCoinJoinInputProof(
- key,
- new CoinJoinInputCommitmentData("CoinJoinCoordinatorIdentifier", roundId));
-
await RequestHandler.ReadyToSign(
new ReadyToSignRequestRequest(
roundId,
- aliceId,
- ownershipProof),
+ aliceId),
cancellationToken).ConfigureAwait(false);
}
}

MODIFY
WalletWasabi/WabiSabi/Models/ReadyToSignRequestRequest.cs
WalletWasabi/WabiSabi/Models/ReadyToSignRequestRequest.cs
@@ -10,6 +10,5 @@ namespace WalletWasabi.WabiSabi.Backend.PostRequests
{
public record ReadyToSignRequestRequest(
uint256 RoundId,
- Guid AliceId,
- OwnershipProof OwnershipProof);
+ Guid AliceId);
}

Remove ownership proof from ReadyToSign