public class SchnorrZnVariableValue extends java.lang.Object implements SchnorrVariableValue
| Modifier and Type | Field and Description |
|---|---|
protected org.cryptimeleon.math.structures.rings.zn.Zn.ZnElement |
value |
protected SchnorrZnVariable |
variable |
| Constructor and Description |
|---|
SchnorrZnVariableValue(org.cryptimeleon.math.structures.rings.zn.Zn.ZnElement value,
SchnorrZnVariable variable) |
| Modifier and Type | Method and Description |
|---|---|
org.cryptimeleon.math.expressions.Expression |
asExpression() |
boolean |
equals(java.lang.Object o) |
SchnorrZnVariableValue |
evalLinear(java.math.BigInteger factor,
SchnorrVariableValue summand)
Returns a
SchnorrVariableValue that is \(\text{factor} * \text{this} + \text{summand}\). |
org.cryptimeleon.math.serialization.Representation |
getRepresentation() |
org.cryptimeleon.math.structures.rings.zn.Zn.ZnElement |
getValue() |
SchnorrZnVariable |
getVariable() |
int |
hashCode() |
org.cryptimeleon.math.hash.ByteAccumulator |
updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator) |
protected final org.cryptimeleon.math.structures.rings.zn.Zn.ZnElement value
protected final SchnorrZnVariable variable
public SchnorrZnVariableValue(org.cryptimeleon.math.structures.rings.zn.Zn.ZnElement value,
SchnorrZnVariable variable)
public org.cryptimeleon.math.serialization.Representation getRepresentation()
getRepresentation in interface org.cryptimeleon.math.serialization.Representablepublic SchnorrZnVariableValue evalLinear(java.math.BigInteger factor, SchnorrVariableValue summand)
SchnorrVariableValueSchnorrVariableValue that is \(\text{factor} * \text{this} + \text{summand}\).evalLinear in interface SchnorrVariableValuepublic SchnorrZnVariable getVariable()
getVariable in interface SchnorrVariableValuepublic org.cryptimeleon.math.expressions.Expression asExpression()
asExpression in interface SchnorrVariableValuepublic org.cryptimeleon.math.structures.rings.zn.Zn.ZnElement getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic org.cryptimeleon.math.hash.ByteAccumulator updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator)
updateAccumulator in interface org.cryptimeleon.math.hash.UniqueByteRepresentable