Skip to content

Commit

Permalink
manifest: validate seed share owner pubkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
davidweisse committed Jun 28, 2024
1 parent 30524dd commit 5150c6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/manifest/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ func (m *Manifest) Validate() error {
}
}

// TODO(davidweisse): validate SeedshareOwnerPubKeys field once it is being used.
for _, key := range m.SeedshareOwnerPubKeys {
if _, err := ParseSeedShareOwnerKey(key); err != nil {
return fmt.Errorf("invalid seed share owner public key: %w", err)
}
}
return nil
}

Expand Down

0 comments on commit 5150c6e

Please sign in to comment.