corrent naming
MODIFY
WalletWasabi/Crypto/CoordinatorParameters.cs
WalletWasabi/Crypto/CoordinatorParameters.cs
@@ -3,9 +3,9 @@ using WalletWasabi.Helpers;
namespace WalletWasabi.Crypto
{
- public class CoordinatorParameters
+ public class CredentialIssuerParameters
{
- public CoordinatorParameters(GroupElement cw, GroupElement i)
+ public CredentialIssuerParameters(GroupElement cw, GroupElement i)
{
Cw = Guard.NotNullOrInfinity(nameof(cw), cw);
I = Guard.NotNullOrInfinity(nameof(i), i);

MODIFY
WalletWasabi/Crypto/CoordinatorSecretKey.cs
WalletWasabi/Crypto/CoordinatorSecretKey.cs
@@ -26,8 +26,8 @@ namespace WalletWasabi.Crypto
public Scalar X1 { get; }
public Scalar Ya { get; }
- public CoordinatorParameters ComputeCoordinatorParameters() =>
- new CoordinatorParameters(
+ public CredentialIssuerParameters ComputeCoordinatorParameters() =>
+ new CredentialIssuerParameters(
cw: W * Generators.Gw + Wp * Generators.Gwp,
i: Generators.GV - (X0 * Generators.Gx0 + X1 * Generators.Gx1 + Ya * Generators.Ga));

MODIFY
WalletWasabi/Crypto/ZeroKnowledge/ProofSystem.cs
WalletWasabi/Crypto/ZeroKnowledge/ProofSystem.cs
@@ -90,7 +90,7 @@ namespace WalletWasabi.Crypto.ZeroKnowledge
public static Knowledge IssuerParametersKnowledge(MAC mac, GroupElement ma, CoordinatorSecretKey sk)
=> new Knowledge(IssuerParametersStatement(sk.ComputeCoordinatorParameters(), mac, ma), new ScalarVector(sk.W, sk.Wp, sk.X0, sk.X1, sk.Ya));
- public static Statement IssuerParametersStatement(CoordinatorParameters iparams, MAC mac, GroupElement ma)
+ public static Statement IssuerParametersStatement(CredentialIssuerParameters iparams, MAC mac, GroupElement ma)
=> new Statement(new GroupElement[,]
{
// public Witness terms:
@@ -100,12 +100,12 @@ namespace WalletWasabi.Crypto.ZeroKnowledge
{ iparams.Cw, Generators.Gw, Generators.Gwp, O, O, O },
});
- public static Knowledge ShowCredentialKnowledge(CredentialPresentation presentation, Scalar z, Credential credential, CoordinatorParameters iparams)
+ public static Knowledge ShowCredentialKnowledge(CredentialPresentation presentation, Scalar z, Credential credential, CredentialIssuerParameters iparams)
=> new Knowledge(
ShowCredentialStatement(presentation, z * iparams.I, iparams),
new ScalarVector(z, (credential.Mac.T * z).Negate(), credential.Mac.T, credential.Amount, credential.Randomness));
- public static Statement ShowCredentialStatement(CredentialPresentation c, GroupElement z, CoordinatorParameters iparams)
+ public static Statement ShowCredentialStatement(CredentialPresentation c, GroupElement z, CredentialIssuerParameters iparams)
=> new Statement(new GroupElement[,]
{
// public Witness terms:

MODIFY
WalletWasabi/Wabisabi/CredentialIssuer.cs
WalletWasabi/Wabisabi/CredentialIssuer.cs
@@ -67,7 +67,7 @@ namespace WalletWasabi.WabiSabi
private CoordinatorSecretKey CoordinatorSecretKey { get; }
- private CoordinatorParameters CoordinatorParameters { get; }
+ private CredentialIssuerParameters CoordinatorParameters { get; }
/// <summary>
/// Gets the number of credentials that have to be requested/presented

MODIFY
WalletWasabi/Wabisabi/WabiSabiClient.cs
WalletWasabi/Wabisabi/WabiSabiClient.cs
@@ -19,7 +19,7 @@ namespace WalletWasabi.WabiSabi
public class WabiSabiClient
{
public WabiSabiClient(
- CoordinatorParameters coordinatorParameters,
+ CredentialIssuerParameters coordinatorParameters,
int numberOfCredentials,
WasabiRandom randomNumberGenerator)
{
@@ -31,7 +31,7 @@ namespace WalletWasabi.WabiSabi
private int NumberOfCredentials { get; }
- private CoordinatorParameters CoordinatorParameters { get; }
+ private CredentialIssuerParameters CoordinatorParameters { get; }
private WasabiRandom RandomNumberGenerator { get; }

corrent naming