Skip to content

Commit 9c3d990

Browse files
committed
docs/rofl: Document refresh-trust-root subcommand
1 parent 0086fd2 commit 9c3d990

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

docs/rofl.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
### Refresh the trust root in the app manifest {#refresh-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 refresh-trust-root`:
565+
566+
![code shell](../examples/rofl/refresh-trust-root.in.static)
567+
568+
![code](../examples/rofl/refresh-trust-root.out.static)
569+
570+
By default the latest finalized consensus block is used. Pass `--height` to pin
571+
a specific block or `--deployment` to update a non-default deployment. After
572+
refreshing, run [`oasis rofl build`](#build) for the new trust root to take
573+
effect.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oasis rofl refresh-trust-root
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated 'rofl.yaml' with trust root: height=1022, hash=bb3e63d729dd568ce07b37eea33eddf8082ed4cacbd64097aad32168a4a4fc9a

0 commit comments

Comments
 (0)