How does EOS ensure contracts are deterministic? If WASM is used doesn't that mean developer can write non-deterministic contracts which break the network?


I understand the properties of a pure function, given some input return the same output. This question is about how is determinism enforced? e.g. Are WASM op codes checked? or some other technique etc.

  • 2
    only deterministic wasm is allowed
    – confused00
    Commented Nov 5, 2018 at 10:42
  • @confused00 how so? Commented Nov 6, 2018 at 8:17

1 Answer 1


All inputs are based on the shared data on a public ledger. There are no analog or non-deterministic input like the time of a day or random number generator.

  • Same inputs
  • Same code
  • Same results

= deterministic


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.