@@ -541,7 +541,7 @@ needs to have a hardcoded *trust root*. Typically, it consists of:
541541- the [chain domain separation context],
542542- the specific consensus block hash and its height.
543543
544- To obtain the latest trust root in rust programming language , run
544+ To obtain the latest trust root in JSON format , run
545545`oasis rofl trust-root` :
546546
547547
@@ -554,3 +554,20 @@ You can also define specific [Network and ParaTime][npa] parameters:
554554
555555[ParaTime ID] : https://github.com/oasisprotocol/oasis-core/blob/master/docs/runtime/identifiers.md
556556[chain domain separation context] : https://github.com/oasisprotocol/oasis-core/blob/master/docs/crypto.md#chain-domain-separation
557+
558+ # ## Set the trust root in the app manifest {#set-trust-root}
559+
560+ The consensus block height and hash of the [trust root](#trust-root) are stored
561+ in the deployment section of the `rofl.yaml` app manifest and are embedded into
562+ the app at build time. Instead of editing the manifest by hand, you can fetch
563+ the latest trust root and update the manifest automatically by running
564+ `oasis rofl set-trust-root` :
565+
566+ 
567+
568+ 
569+
570+ By default the latest finalized consensus block is used. You can also pass the
571+ block `height` (and optionally the block `hash`) as positional arguments to pin
572+ a specific block, or `--deployment` to update a non-default deployment. After
573+ setting the trust root, run [`oasis rofl build`](#build) for it to take effect.
0 commit comments