games.atplay.calculation.randomNumber

Data needed for the players to coordinate generating a trusted random number together, eg. dice rolls, who plays first, shuffling cards

Repository @atplay.games did:plc:xawtkr77srkxlwhxjf7whbml namespace authority
Details · object
Kindobject
Authoritycalculation.atplay.games
Indexed

Object

object

Properties

id

requiredstring

An ID used by the game logic to find transient data when needed

  • maxLength: 32

inputs

requiredarray

The inputs needed to complete the calculation at its various stages, one per player

itemsobject

A hashed or cleartext value used in a calculation. A hash, value, or both must be present, and all hashes must be revealed by a value (for verification) at some point during the game

result

integer

Holds the result of the calculation, so that it can be validated easily. Should always be present once the calculation is completable

under

requiredinteger

The number which this random number will be under (eg. coin toss = 2, dice roll = 6)