iya-sts
    Preparing search index...
    readStatusListCwt: (
        buf: Buffer,
        key: any,
        opts: { algorithms: string[]; maxOutputLength?: number; now?: number },
    ) => any = ...

    Type Declaration

      • (
            buf: Buffer,
            key: any,
            opts: { algorithms: string[]; maxOutputLength?: number; now?: number },
        ): any
      • Verifies and reads a Status List Token in CWT form.

        Parameters

        • buf: Buffer

          the CWT bytes

        • key: any

          the public key

        • opts: { algorithms: string[]; maxOutputLength?: number; now?: number }

          algorithms, and now and maxOutputLength

        Returns any

        { sub, iat, exp, ttl, bits, bytes, aggregationUri, alg }

        Error when it does not verify or is expired or malformed