verify

abstract fun verify(engineId: String, expectedHash: String): Boolean

Verify an engine matches the expected implementation hash. Used to detect tampering.

Return

True if hash matches, false otherwise (including if engine is not registered)

Parameters

engineId

The engine identifier

expectedHash

The expected implementation hash from the contract (must not be blank)

Throws

if expectedHash is blank