Add weight credentials
MODIFY
WalletWasabi/WabiSabi/Models/ConnectionConfirmationRequest.cs
WalletWasabi/WabiSabi/Models/ConnectionConfirmationRequest.cs
@@ -10,18 +10,22 @@ namespace WalletWasabi.WabiSabi.Models
{
public class ConnectionConfirmationRequest
{
- public ConnectionConfirmationRequest(Guid roundId, Guid aliceId, RegistrationRequestMessage zeroCredentialRequests, RegistrationRequestMessage realCredentialRequests)
+ public ConnectionConfirmationRequest(Guid roundId, Guid aliceId, RegistrationRequestMessage zeroAmountCredentialRequests, RegistrationRequestMessage realAmountCredentialRequests, RegistrationRequestMessage realWeightCredentialRequests, RegistrationRequestMessage zeroWeightCredentialRequests)
{
RoundId = roundId;
AliceId = aliceId;
- RealCredentialRequests = realCredentialRequests;
- ZeroCredentialRequests = zeroCredentialRequests;
+ RealAmountCredentialRequests = realAmountCredentialRequests;
+ ZeroAmountCredentialRequests = zeroAmountCredentialRequests;
+ RealWeightCredentialRequests = realWeightCredentialRequests;
+ ZeroWeightCredentialRequests = zeroWeightCredentialRequests;
}
public Guid RoundId { get; }
public Guid AliceId { get; }
- public RegistrationRequestMessage RealCredentialRequests { get; }
- public RegistrationRequestMessage ZeroCredentialRequests { get; }
+ public RegistrationRequestMessage RealAmountCredentialRequests { get; }
+ public RegistrationRequestMessage ZeroAmountCredentialRequests { get; }
+ public RegistrationRequestMessage RealWeightCredentialRequests { get; }
+ public RegistrationRequestMessage ZeroWeightCredentialRequests { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/ConnectionConfirmationResponse.cs
WalletWasabi/WabiSabi/Models/ConnectionConfirmationResponse.cs
@@ -9,11 +9,13 @@ namespace WalletWasabi.WabiSabi.Models
{
public class ConnectionConfirmationResponse
{
- public ConnectionConfirmationResponse(RegistrationResponseMessage credentials)
+ public ConnectionConfirmationResponse(RegistrationResponseMessage amountCredentials, RegistrationResponseMessage weightCredentials)
{
- Credentials = credentials;
+ AmountCredentials = amountCredentials;
+ WeightCredentials = weightCredentials;
}
- public RegistrationResponseMessage Credentials { get; }
+ public RegistrationResponseMessage AmountCredentials { get; }
+ public RegistrationResponseMessage WeightCredentials { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/CredentialReissuanceRequest.cs
WalletWasabi/WabiSabi/Models/CredentialReissuanceRequest.cs
@@ -9,13 +9,15 @@ namespace WalletWasabi.WabiSabi.Models
{
public class CredentialReissuanceRequest
{
- public CredentialReissuanceRequest(Guid roundId, RegistrationRequestMessage credentialRequests)
+ public CredentialReissuanceRequest(Guid roundId, RegistrationRequestMessage amountCredentialRequests, RegistrationRequestMessage weighCredentialRequests)
{
RoundId = roundId;
- CredentialRequests = credentialRequests;
+ AmountCredentialRequests = amountCredentialRequests;
+ WeighCredentialRequests = weighCredentialRequests;
}
public Guid RoundId { get; }
- public RegistrationRequestMessage CredentialRequests { get; }
+ public RegistrationRequestMessage AmountCredentialRequests { get; }
+ public RegistrationRequestMessage WeighCredentialRequests { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/CredentialReissuanceResponse.cs
WalletWasabi/WabiSabi/Models/CredentialReissuanceResponse.cs
@@ -9,11 +9,13 @@ namespace WalletWasabi.WabiSabi.Models
{
public class CredentialReissuanceResponse
{
- public CredentialReissuanceResponse(RegistrationResponseMessage credentials)
+ public CredentialReissuanceResponse(RegistrationResponseMessage amountCredentials, RegistrationResponseMessage weightCredentials)
{
- Credentials = credentials;
+ AmountCredentials = amountCredentials;
+ WeightCredentials = weightCredentials;
}
- public RegistrationResponseMessage Credentials { get; }
+ public RegistrationResponseMessage AmountCredentials { get; }
+ public RegistrationResponseMessage WeightCredentials { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/InputsRegistrationRequest.cs
WalletWasabi/WabiSabi/Models/InputsRegistrationRequest.cs
@@ -10,15 +10,17 @@ namespace WalletWasabi.WabiSabi.Models
{
public class InputsRegistrationRequest
{
- public InputsRegistrationRequest(Guid roundId, IEnumerable<InputRoundSignaturePair> inputRoundSignaturePairs, RegistrationRequestMessage zeroCredentialRequests)
+ public InputsRegistrationRequest(Guid roundId, IEnumerable<InputRoundSignaturePair> inputRoundSignaturePairs, RegistrationRequestMessage zeroAmountCredentialRequests, RegistrationRequestMessage zeroWeightCredentialRequests)
{
RoundId = roundId;
InputRoundSignaturePairs = inputRoundSignaturePairs;
- ZeroCredentialRequests = zeroCredentialRequests;
+ ZeroAmountCredentialRequests = zeroAmountCredentialRequests;
+ ZeroWeightCredentialRequests = zeroWeightCredentialRequests;
}
public Guid RoundId { get; }
public IEnumerable<InputRoundSignaturePair> InputRoundSignaturePairs { get; }
- public RegistrationRequestMessage ZeroCredentialRequests { get; }
+ public RegistrationRequestMessage ZeroAmountCredentialRequests { get; }
+ public RegistrationRequestMessage ZeroWeightCredentialRequests { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/InputsRegistrationResponse.cs
WalletWasabi/WabiSabi/Models/InputsRegistrationResponse.cs
@@ -9,13 +9,15 @@ namespace WalletWasabi.WabiSabi.Models
{
public class InputsRegistrationResponse
{
- public InputsRegistrationResponse(Guid aliceId, RegistrationResponseMessage credentials)
+ public InputsRegistrationResponse(Guid aliceId, RegistrationResponseMessage amountCredentials, RegistrationResponseMessage weightCredentials)
{
AliceId = aliceId;
- Credentials = credentials;
+ AmountCredentials = amountCredentials;
+ WeightCredentials = weightCredentials;
}
public Guid AliceId { get; }
- public RegistrationResponseMessage Credentials { get; }
+ public RegistrationResponseMessage AmountCredentials { get; }
+ public RegistrationResponseMessage WeightCredentials { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/OutputRegistrationRequest.cs
WalletWasabi/WabiSabi/Models/OutputRegistrationRequest.cs
@@ -10,16 +10,18 @@ namespace WalletWasabi.WabiSabi.Models
{
public class OutputRegistrationRequest
{
- public OutputRegistrationRequest(Guid roundId, TxOut output, IEnumerable<Credential> presentedCredentials)
+ public OutputRegistrationRequest(Guid roundId, TxOut output, IEnumerable<Credential> presentedAmountCredentials, IEnumerable<Credential> presentedWeighCredentials)
{
RoundId = roundId;
Output = output;
- PresentedCredentials = presentedCredentials;
+ PresentedAmountCredentials = presentedAmountCredentials;
+ PresentedWeighCredentials = presentedWeighCredentials;
}
public Guid RoundId { get; }
public TxOut Output { get; }
- public IEnumerable<Credential> PresentedCredentials { get; }
+ public IEnumerable<Credential> PresentedAmountCredentials { get; }
+ public IEnumerable<Credential> PresentedWeighCredentials { get; }
}
}

Add weight credentials