Function compilerOperationHelperComputeDataSignatureBCH

  • Type Parameters

    Parameters

    • __namedParameters: {
          configuration: Configuration;
          data: Data;
          identifier: string;
          operationName: string;
          privateKey: Uint8Array;
          sha256: {
              hash: ((input: Uint8Array) => Uint8Array);
          };
          sign: ((privateKey: Uint8Array, messageHash: Uint8Array) => string | Uint8Array);
      }
      • configuration: Configuration
      • data: Data
      • identifier: string
      • operationName: string
      • privateKey: Uint8Array
      • sha256: {
            hash: ((input: Uint8Array) => Uint8Array);
        }
        • hash: ((input: Uint8Array) => Uint8Array)
            • (input: Uint8Array): Uint8Array
            • Returns the sha256 hash of the provided input.

              To incrementally construct a sha256 hash (e.g. for streaming), use init, update, and final.

              Parameters

              • input: Uint8Array

                a Uint8Array to be hashed using sha256

              Returns Uint8Array

      • sign: ((privateKey: Uint8Array, messageHash: Uint8Array) => string | Uint8Array)
          • (privateKey: Uint8Array, messageHash: Uint8Array): string | Uint8Array
          • Parameters

            • privateKey: Uint8Array
            • messageHash: Uint8Array

            Returns string | Uint8Array

    Returns CompilerOperationError | CompilerOperationSuccess

Generated using TypeDoc