Skip to content

test compatibility with v5 OpenPGP keys? #3619

@tomholub

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)

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