Skip to content

Signed engines

A game’s compiled engine is code, and it runs on Arbitas’s servers and in players’ browsers. Arbitas signs every engine it publishes, and nothing loads an engine whose signature doesn’t hold, so an engine can’t be swapped or altered on its way from the publish to a match.

  1. Publishing signs the engine. When a publish has compiled your rules and the smoke games pass, Arbitas signs the engine with its engines key (ECDSA P-256 with SHA-256, the ES256 algorithm). The signature covers the rules’ hash and a digest of the engine’s bytes, and is stored beside the engine.
  2. Engines are served by their rules’ hash. Released engines are served publicly from engines.arbitas.app, each with its signature.
  3. The server checks before it plays. When a match starts on a published version, the server fetches the engine by its hash and refuses to load it unless the signature holds.
  4. The web player checks before it loads. The hosted web player checks each engine against the engines public keys built into the web player itself, never keys served alongside the engines, and shows an error rather than load an engine that fails the check. An attacker who could change the files on the engine host still couldn’t make the web player accept a different engine.

Nothing to do: signing and checking happen on every publish and every load. If you see an engine refused in the web player, contact support, because it means something between the publish and the player went wrong.

The Unity SDK makes the same check before it loads an engine; it isn’t released yet.