Skip to content

Commit

Permalink
manifest: validate seed share owner pubkeys (#653)
Browse files Browse the repository at this point in the history
* manifest: validate seed share owner pubkeys

---------

Co-authored-by: Tom Dohrmann <erbse.13@gmx.de>
  • Loading branch information
davidweisse and Freax13 authored Jul 1, 2024
1 parent 328a7f5 commit 8659343
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 %s: %w", key, err)
}
}
return nil
}

Expand Down

0 comments on commit 8659343

Please sign in to comment.