games.atplay.calculation.drawPile
Coordination state for a single hidden-pile operation (shuffle or reveal). The pile contents themselves live in _piles under shared or individual state; this calculation tracks the multi-player cryptographic protocol needed to transform them.
Details · object
| Kind | object |
|---|---|
| Authority | calculation.atplay.games |
| Indexed |
Object
objectProperties
Work queue of required actions. When empty and any pending decryption has been applied, the calculation is deleted from transient.
minLength: 1
A pending action in the work queue. Removed once performed.
A unique id for this operation, typically of the form '<pileId>:shuffle' or '<pileId>:reveal:<ciphertext>'. Sized to hold a pileId plus one Pohlig-Hellman ciphertext (~134 chars on a 768-bit prime) with headroom.
maxLength: 256
revealTargets
arrayFor reveal calcs: the list of players who should end up able to decrypt the reveal's ciphertext. Each listed player's secrets will hold a sufficient key set after the calc drains. When this list covers every player in state.individual, the protocol additionally replaces the ciphertext in the pile with its plaintext (public reveal). Absent or empty on shuffle calcs.
#pile
objectA reference to a pile: whose it is, and which of theirs.