iya-sts
    Preparing search index...

    Variable coseSign1VerifyAsync

    coseSign1VerifyAsync: (
        buf: Buffer,
        key: any,
        opts: { algorithms: string[] },
    ) => Promise<any> = ...

    Type Declaration

      • (buf: Buffer, key: any, opts: { algorithms: string[] }): Promise<any>
      • Verifies a COSE_Sign1, with a post-quantum check made on libuv's thread pool.

        Parameters

        • buf: Buffer

          the COSE_Sign1 bytes

        • key: any

          the public key

        • opts: { algorithms: string[] }

          algorithms, those accepted

        Returns Promise<any>

        { alg, protectedHeader, unprotectedHeader, payload }