EncryptedCast class

A cast of a sealed or tallied-encrypted election: exactly one of sealed (the Ballot's JCS bytes sealed to the election key) or encrypted, with the tag and the attestation over the JCS bytes of whichever is present (CONVENTIONS §3.6, §9.5).

Constructors

EncryptedCast({SealedPayload? sealed, EncryptedBallot? encrypted, required Multibase tag, required Multibase attestation})
const
EncryptedCast.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

attestation → String
final
encrypted → EncryptedBallot?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sealed → SealedPayload?
final
tag → String
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