require IStatementDescription interface in Transcript
MODIFY
WalletWasabi/Crypto/ZeroKnowledge/LinearRelation/Statement.cs
WalletWasabi/Crypto/ZeroKnowledge/LinearRelation/Statement.cs
@@ -3,10 +3,11 @@ using System.Collections.Generic;
using System.Linq;
using WalletWasabi.Crypto.Groups;
using WalletWasabi.Helpers;
+using WalletWasabi.Crypto.ZeroKnowledge;
namespace WalletWasabi.Crypto.ZeroKnowledge.LinearRelation
{
- public class Statement
+ public class Statement : IStatementDescription
{
public Statement(params Equation[] equations)
: this(equations as IEnumerable<Equation>)

MODIFY
WalletWasabi/Crypto/ZeroKnowledge/Transcript.cs
WalletWasabi/Crypto/ZeroKnowledge/Transcript.cs
@@ -58,7 +58,7 @@ namespace WalletWasabi.Crypto.ZeroKnowledge
AddMessages(PublicNonceTag, publicNonces.Select(x => x.ToBytes()));
}
- public void CommitStatement(Statement statement)
+ public void CommitStatement(IStatementDescription statement)
{
CryptoGuard.NotNullOrInfinity(nameof(statement.Generators), statement.Generators);
AddMessages(StatementTag, statement.Generators.Select(x => x.ToBytes()));

require IStatementDescription interface in Transcript