Skip to content

VerificationResult should include keys for keyids #2544

@lukpueh

Description

@lukpueh

The get_verification_result method returns a VerificationResult, which contains two sets of TUF keyids.

Typical usage of a VerificationResult entails retrieving the Key objects for those keyids from the corresponding root metadata keystore. It would be useful, if VerificationResult included Key objects right away.

Options are:

  1. Use sets of Key objects - This requires making the Key class hashable and immutable, which is possible but maybe overly complicated (see discussion))
  2. Use lists of Key objects and promise that they only contain unique keys, and optionally provide tooling for set-like operations (see wrapper workaround)
  3. Use "keyid: Key"- dictionaries (see wrapper workaround)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions