public interface TwoPartyProtocol
| 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). |
TwoPartyProtocolInstance |
instantiateProtocol(java.lang.String role,
CommonInput commonInput,
SecretInput secretInput) |
default void |
runProtocolLocally(TwoPartyProtocolInstance instance0,
TwoPartyProtocolInstance instance1)
Runs the two instances until they both terminate, passing messages directly from one to the other (i.e.
|
TwoPartyProtocolInstance instantiateProtocol(java.lang.String role, CommonInput commonInput, SecretInput secretInput)
java.lang.String[] getRoleNames()
InteractiveArgument).java.lang.String getFirstMessageRole()
default void runProtocolLocally(TwoPartyProtocolInstance instance0, TwoPartyProtocolInstance instance1)