File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,27 @@ multi-sigs or DAOs with veto powers to control the upgrade process.
140140
141141:::
142142
143+ :::tip App ID calculation
144+
145+ App ID is derived using one of the two schemes:
146+
147+ - **Creator address + creator account nonce (default)**: This approach is
148+ suitable for running tests (e.g. in [`sapphire-localnet`]) where you want
149+ deterministic app ID.
150+ - **Creator address + block round number + index of the `rofl.Create`
151+ transaction in the block**: This approach is non-deterministic and preferred
152+ in production environments so that the potential attacker cannot simply
153+ determine ROFL app ID in advance, even if they knew what the creator address
154+ is.
155+
156+ You can select the app ID derivation scheme by passing the
157+ [`--scheme` parameter][scheme-parameter].
158+
159+ :::
160+
161+ [`sapphire-localnet`]: https://github.com/oasisprotocol/docs/blob/main/docs/build/tools/localnet.mdx
162+ [scheme-parameter]: https://github.com/oasisprotocol/cli/blob/master/docs/rofl.md#create
163+
143164## Oracle Contract
144165
145166:::info
You can’t perform that action at this time.
0 commit comments