From f257064f1e5db3f4c72646426c0a3ae937e9c72a Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 15 Jan 2024 17:08:19 +0000 Subject: [PATCH] Add new field for the firmware config to indicate a new witness identity. --- config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 7cd4871..2cb7be2 100644 --- a/config/config.go +++ b/config/config.go @@ -38,7 +38,7 @@ type ProofBundle struct { InclusionProof [][]byte } -// Config represents the armored-witness-boot configuration. +// Config represents a firmware component configuration. type Config struct { // Offset is the MMC/SD card offset to an ELF unikernel image (e.g. TamaGo). Offset int64 @@ -49,6 +49,9 @@ type Config struct { // Bundle contains firmware transparency artefacts relating to the firmware this config // references. Bundle ProofBundle + // NewIdentity is whether the device should ignore its previous data and boot + // as a new witness identity. + NewIdentity bool } // Encode serializes the configuration.