CardState

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard