Skip to content

PubKey type should have emails and uids type on it #812

Description

@tomholub
struct PubKey {
    let armored: String
    /// will be provided later
    let lastSig: Date?
    /// the date when key was retrieved from a public key server, or nil
    let lastChecked: Date?
    /// expiration date
    let expiresOn: Date?
    /// all key longids
    let longids: [String]
    /// all key fingerprints
    let fingerprints: [String]
    /// key created date
    let created: Date?
    /// key algo
    let algo: KeyAlgo?
    /// is key revoked
    let isRevoked: Bool
}

When parsing a key, the pgp user ids are available, and so are pgp user id emails once parsed. These should be included in this type.

Then all usages of armored should be investigated, to see if it's being used solely for parsing out the emails. Such usages should be replaced directly with the newly added property.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions