EncryptedQuestion class

One choice question of a tallied-encrypted ballot: per option, in the manifest's order, an encryption of 0 or 1 with its proof; and a proof that the selections sum to a count the question admits (CONVENTIONS §9.5).

Constructors

EncryptedQuestion({required Key question, required List<EncryptedOption> options, required DisjunctiveProof sumProof})
const
EncryptedQuestion.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
options → List<EncryptedOption>
final
question → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sumProof → DisjunctiveProof
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited