public abstract class BaseProtocol extends java.lang.Object implements TwoPartyProtocol
TwoPartyProtocol.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
firstMessageRole |
protected java.lang.String |
otherRole |
| Constructor and Description |
|---|
BaseProtocol(java.lang.String firstMessageRole,
java.lang.String otherRole) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFirstMessageRole()
Returns the role that sends the first message.
|
java.lang.String[] |
getRoleNames()
Returns names for the roles of the participants in this protocol (for example, "prover" or "verifier"
in the case of an
InteractiveArgument). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiateProtocol, runProtocolLocallyprotected java.lang.String firstMessageRole
protected java.lang.String otherRole
public BaseProtocol(java.lang.String firstMessageRole,
java.lang.String otherRole)
public java.lang.String getFirstMessageRole()
TwoPartyProtocolgetFirstMessageRole in interface TwoPartyProtocolpublic java.lang.String[] getRoleNames()
TwoPartyProtocolInteractiveArgument).getRoleNames in interface TwoPartyProtocol