public static class SendThenDelegateFragment.SubprotocolSpecBuilder
extends java.lang.Object
SendThenDelegateFragment.SubprotocolSpecs.| Constructor and Description |
|---|
SubprotocolSpecBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SchnorrGroupElemVariable |
addGroupElemVariable(java.lang.String name,
org.cryptimeleon.math.structures.groups.Group group)
Specifies that the fragment shall prove knowledge of a
GroupElement. |
void |
addSubprotocol(java.lang.String name,
SchnorrFragment fragment)
Specifies that this fragment shall run the given subprotocol.
|
SchnorrZnVariable |
addZnVariable(java.lang.String name,
org.cryptimeleon.math.structures.rings.zn.Zn zn)
Specifies that the fragment shall prove knowledge of a
Zn.ZnElement. |
SendThenDelegateFragment.SubprotocolSpec |
build()
Instantiate the
SendThenDelegateFragment.SubprotocolSpec from the data provided. |
public SendThenDelegateFragment.SubprotocolSpec build()
SendThenDelegateFragment.SubprotocolSpec from the data provided.public SchnorrZnVariable addZnVariable(java.lang.String name, org.cryptimeleon.math.structures.rings.zn.Zn zn)
Zn.ZnElement.name - name of the variable. Must be unique within this SendThenDelegateFragment.SubprotocolSpecBuilder. The same names shall be used in SendThenDelegateFragment.provideProverSpec(SchnorrVariableAssignment, ProverSpecBuilder) when specifying a witness.zn - the ring that values of this variable belong toSchnorrFragment subprotocol.public SchnorrGroupElemVariable addGroupElemVariable(java.lang.String name, org.cryptimeleon.math.structures.groups.Group group)
GroupElement.name - name of the variable. Must be unique within this SendThenDelegateFragment.SubprotocolSpecBuilder. The same names shall be used in SendThenDelegateFragment.provideProverSpec(SchnorrVariableAssignment, ProverSpecBuilder) when specifying a witness.group - the group that values of this variable belong toSchnorrFragment subprotocol.public void addSubprotocol(java.lang.String name,
SchnorrFragment fragment)
name - a name unique within this SendThenDelegateFragment.SubprotocolSpecBuilder. You will not have to reference this name again.fragment - the subprotocol to be run.