Skip to content

Extension points

tilttek/secret-rolls

The package is at 0.x: its extension points are stable only from its 1.0 release. Until then, a minor version may change them, and its CHANGELOG says how.

PointWhat an application givesWhere
Contract\SecretRollStoreThe storage of the journals and of the sealed rollsStoring and publishing
Contract\JournalPublisherHow the table learns of each entry: Mercure, a WebSocket, a chat bridgeStoring and publishing
Tilttek\Dice\DiceRollerThe notation, the dialects and the limits the rolls are read and checked withInstallation
Random\RandomizerThe source of the seeds; the system's secure source by defaultInstallation

Every point is passed to the constructor of SecretRolls or of RollVerifier; neither keeps state between two calls.