SealdSdk_CheckSigchainHash method

int SealdSdk_CheckSigchainHash(
  1. Pointer<NativeSealdSdk> sealdSdk,
  2. Pointer<Utf8> userId,
  3. Pointer<Utf8> expectedHash,
  4. int position,
  5. Pointer<Pointer<NativeSealdCheckSigchainResponse>> result,
  6. Pointer<Pointer<NativeSealdError>> error,
)

Verify if a given hash is included in the recipient's sigchain. Use the position option to check the hash of a specific sigchain transaction.

@param sealdSdk The SealdSdk instance. @param userId The Seald ID of the concerned user. @param expectedHash The expected sigchain hash. @param position Position of the sigchain transaction against which to check the hash. -1 to check if the hash exist in the sigchain. Default to -1. @param result A pointer to a SealdCheckSigchainResponse*, in which to write the result. @param error A pointer to a SealdError* where details will be stored in case of error. @return Error code: -1 if an error happened, 0 for success.

Implementation

int SealdSdk_CheckSigchainHash(
  ffi.Pointer<NativeSealdSdk> sealdSdk,
  ffi.Pointer<pkg_ffi.Utf8> userId,
  ffi.Pointer<pkg_ffi.Utf8> expectedHash,
  int position,
  ffi.Pointer<ffi.Pointer<NativeSealdCheckSigchainResponse>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSdk_CheckSigchainHash(
    sealdSdk,
    userId,
    expectedHash,
    position,
    result,
    error,
  );
}