public class SigmaProtocolProverInstance extends SigmaProtocolInstance
| Modifier and Type | Class and Description |
|---|---|
static class |
SigmaProtocolProverInstance.State |
| Modifier and Type | Field and Description |
|---|---|
protected SigmaProtocolProverInstance.State |
state |
announcement, announcementSecret, challenge, commonInput, protocol, response, secretInput| Constructor and Description |
|---|
SigmaProtocolProverInstance(SigmaProtocol protocol,
CommonInput commonInput,
SecretInput secretInput) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRoleName() |
boolean |
hasTerminated()
Returns true if the protocol is done, meaning no further calls to
nextMessage() are necessary. |
org.cryptimeleon.math.serialization.Representation |
nextMessage(org.cryptimeleon.math.serialization.Representation received)
Outputs the next message this protocol instance demands to be sent to the other party.
|
getProtocol, isAcceptingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendsFirstMessageprotected SigmaProtocolProverInstance.State state
public SigmaProtocolProverInstance(SigmaProtocol protocol, CommonInput commonInput, SecretInput secretInput)
public java.lang.String getRoleName()
public org.cryptimeleon.math.serialization.Representation nextMessage(org.cryptimeleon.math.serialization.Representation received)
TwoPartyProtocolInstancereceived - the message recently received from the other party
or null if this is the first round and no messages have been sent yetm to be sent to the other party (who then calls nextMessage(m) on their end).
If nextMessage returns null, the protocol has terminatedpublic boolean hasTerminated()
TwoPartyProtocolInstancenextMessage() are necessary.