Hide constructors
MODIFY
WalletWasabi/Wabisabi/CredentialRegistrationFactory.cs
WalletWasabi/Wabisabi/CredentialRegistrationFactory.cs
@@ -51,12 +51,6 @@ namespace WalletWasabi.Wabisabi
validationData[i] = new IssuanceValidationData(amount, attribute.Randomness, attribute.Ma);
}
- // Generate Balance Proof
- // var r = Random.GetScalar();
- // var Ma = r * Generators.Gh;
- // var balanceKnowledge = ProofSystem.ZeroProof(Ma, r);
- var knowledgeToProve = knowledge; //.Append(balanceKnowledge);
-
var transcript = BuildTransnscript(isNullRequest: true);
return (
@@ -64,7 +58,7 @@ namespace WalletWasabi.Wabisabi
Money.Zero,
Enumerable.Empty<CredentialPresentation>(),
credentialsToRequest,
- Prover.Prove(transcript, knowledgeToProve, Random)),
+ Prover.Prove(transcript, knowledge, Random)),
new RegistrationValidationData(
transcript,
Enumerable.Empty<Credential>(),

MODIFY
WalletWasabi/Wabisabi/IssuanceRequest.cs
WalletWasabi/Wabisabi/IssuanceRequest.cs
@@ -5,7 +5,7 @@ namespace WalletWasabi.Wabisabi
{
public class IssuanceRequest
{
- public IssuanceRequest(GroupElement ma, IEnumerable<GroupElement> bitCommitments)
+ internal IssuanceRequest(GroupElement ma, IEnumerable<GroupElement> bitCommitments)
{
Ma = ma;
BitCommitments = bitCommitments;

MODIFY
WalletWasabi/Wabisabi/IssuanceValidationData.cs
WalletWasabi/Wabisabi/IssuanceValidationData.cs
@@ -6,7 +6,7 @@ namespace WalletWasabi.Wabisabi
{
public class IssuanceValidationData
{
- public IssuanceValidationData(Money amount, Scalar r, GroupElement ma)
+ internal IssuanceValidationData(Money amount, Scalar r, GroupElement ma)
{
Amount = amount;
Randomness = r;

MODIFY
WalletWasabi/Wabisabi/RegistrationRequest.cs
WalletWasabi/Wabisabi/RegistrationRequest.cs
@@ -36,6 +36,5 @@ namespace WalletWasabi.Wabisabi
public IEnumerable<GroupElement> SerialNumbers => Presented.Select(x => x.S);
public bool AreThereDuplicatedSerialNumbers => SerialNumbers.Distinct().Count() < SerialNumbers.Count();
-
}
}
\ No newline at end of file

MODIFY
WalletWasabi/Wabisabi/RegistrationValidationData.cs
WalletWasabi/Wabisabi/RegistrationValidationData.cs
@@ -5,7 +5,7 @@ namespace WalletWasabi.Wabisabi
{
public class RegistrationValidationData
{
- public RegistrationValidationData(Transcript transcript, IEnumerable<Credential> presented, IssuanceValidationData[] requested)
+ internal RegistrationValidationData(Transcript transcript, IEnumerable<Credential> presented, IssuanceValidationData[] requested)
{
Transcript = transcript;
Presented = presented;

Hide constructors