@microsoft/ccf-app
    Preparing search index...

    Variable signConst

    sign: (
        algorithm: SigningAlgorithm,
        key: string,
        plaintext: ArrayBuffer,
    ) => ArrayBuffer = ccf.crypto.sign

    Generate a signature.

    Type Declaration

      • (algorithm: SigningAlgorithm, key: string, plaintext: ArrayBuffer): ArrayBuffer
      • Generate a signature.

        Parameters

        • algorithm: SigningAlgorithm

          Signing algorithm and parameters

        • key: string

          A PEM-encoded private key

        • plaintext: ArrayBuffer

          Input data that will be signed

        Returns ArrayBuffer

        Will throw an error if the key is not compatible with the signing algorithm or if an unknown algorithm is used.