iya-sts
    Preparing search index...

    Variable verifyCoseSignature

    verifyCoseSignature: (
        coseAlg: any,
        key: any,
        data: any,
        signature: any,
        opts: any,
    ) => boolean = verifyCoseSignature

    Type Declaration

      • (coseAlg: any, key: any, data: any, signature: any, opts: any): boolean
      • Says whether a signature verifies under a COSE algorithm, synchronously; a key of the wrong kind is false, never a throw.

        Parameters

        • coseAlg: any

          the COSE algorithm identifier

        • key: any

          the public key, or for ML-DSA an AKP JWK or the raw bytes

        • data: any

          the bytes signed

        • signature: any

          the signature

        • opts: any

          allowInsecure: accept an algorithm marked insecure (RS1); refused otherwise

        Returns boolean

        true when it verifies