Skip to content

Commit

Permalink
verify: reuse idKeyDigests from default config
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Jan 22, 2024
1 parent 83fb11e commit a8c3f60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ func parseVerifyFlags(cmd *cobra.Command) (*verifyFlags, error) {
}

func newCoordinatorValidateOptsGen() *snp.StaticValidateOptsGenerator {
trustedIDKeyDigests, err := (&manifest.HexStrings{
"b2bcf1b11d9fb3f2e4e7979546844d26c30255fff0775f3af56f8295f361a7d1a34a54516d41abfff7320763a5b701d8",
"22087e0b99b911c9cffccfd9550a054531c105d46ed6d31f948eae56bd2defa4887e2fc4207768ec610aa232ac7490c4",
}).ByteSlices()
defaultManifest := manifest.Default()
trustedIDKeyDigests, err := (&defaultManifest.ReferenceValues.SNP.TrustedIDKeyHashes).ByteSlices()
if err != nil {
panic(err) // We are decoding known values, tests should catch any failure.
}
Expand Down

0 comments on commit a8c3f60

Please sign in to comment.