Skip to content

Commit

Permalink
Add new field for the firmware config to indicate a new witness ident…
Browse files Browse the repository at this point in the history
…ity.
  • Loading branch information
jiggoha committed Jan 15, 2024
1 parent 3722a7e commit f257064
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit f257064

Please sign in to comment.