iya-sts
    Preparing search index...

    Variable openpgpReadKey

    openpgpReadKey: (input: any, options: any) => Promise<any> = openpgpReadKey

    Type Declaration

      • (input: any, options: any): Promise<any>
      • Reads a person's OpenPGP public key and holds it to the allow list as of an instant: one public key (never a secret one), not revoked, not expired, a signing key and — when it has one — an encryption key the list accepts.

        Parameters

        • input: any

          the armored key, or its binary packets

        • options: any

          { at: Date, minRsaBits, accept, registration, pqcOnly, pqcAlongsideClassical }. accept is openpgp.algorithms; omitted, the whole universe applies. The two post-quantum switches are read only when registration is true.

        Returns Promise<any>

        { ok: true, key, description, armored, binary }, or a coded refusal (STS-OPENPGP-0001 to -0006, or -0026 when ML-DSA cannot be checked)