iya-sts
    Preparing search index...
    coseSign1Verify: (buf: Buffer, key: any, opts: { algorithms: string[] }) => any = ...

    Type Declaration

      • (buf: Buffer, key: any, opts: { algorithms: string[] }): any
      • Verifies a COSE_Sign1.

        Parameters

        • buf: Buffer

          the COSE_Sign1 bytes

        • key: any

          the public key

        • opts: { algorithms: string[] }

          algorithms, those accepted

        Returns any

        { alg, protectedHeader, unprotectedHeader, payload }

        Error when it does not parse or verify