When writing smart contracts it's important to make sure that all data structures used are deterministic.
Specifically, if HashMap
or HashSet
are used - is there a possible non determinism coming from Rust standard library?
Since Wasm runtime doesn't have access to non-deterministic inputs, the entire execution is deterministic. HashSet
and HashMap
use seed from the available source, in case of Wasm compilation there are no available source, the execution will always be the same. It should be easy to confirm.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With