CardState

@Serializable
data class CardState(val ciphertext: ByteArray, val encryptedBy: GSet<PlayerId>, val strippedBy: GSet<PlayerId>, val visibilityQuorum: Set<PlayerId>, val allPlayers: Set<PlayerId>, val quorumTracks: Map<PlayerId, QuorumTrack> = emptyMap())

Constructors

Link copied to clipboard
constructor(ciphertext: ByteArray, encryptedBy: GSet<PlayerId>, strippedBy: GSet<PlayerId>, visibilityQuorum: Set<PlayerId>, allPlayers: Set<PlayerId>, quorumTracks: Map<PlayerId, QuorumTrack> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Per-member reveal tracks for a partial multi-member quorum (1 < |visibilityQuorum| < |allPlayers|), keyed by the member the track reveals to. Empty for single-reader and community cards. See QuorumTrack.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the next CardState after applying op, or null if op is invalid.

Link copied to clipboard

Returns true iff op is valid to apply to this CardState.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

True iff this card is visible to a strict multi-member subset of players.

Link copied to clipboard
Link copied to clipboard