Skip to content

test compatibility with v5 OpenPGP keys? #3619

Description

@tomholub
  public static fingerprintToLongid = (fingerprint: string) => {
    if (fingerprint.length === 40) { // pgp keys
      return fingerprint.substr(-16).toUpperCase();
    }
    throw new Error(`Unexpected fingerprint format (len: ${fingerprint.length}): "${fingerprint}"`);
  }

Actually this is ok, however this will not work for v5 OpenPGP keys which use longer fingerprints. I'll file a separate issue.

Originally posted by @tomholub in #3575 (comment)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    PGP or S/MIMErequires knowledge of spec internals

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions