SealdSdk_GetSigchainHash method

int SealdSdk_GetSigchainHash(
  1. Pointer<NativeSealdSdk> sealdSdk,
  2. Pointer<Utf8> userId,
  3. int position,
  4. Pointer<Pointer<NativeSealdGetSigchainResponse>> result,
  5. Pointer<Pointer<NativeSealdError>> error,
)

Get a user's sigchain transaction hash at index position.

@param sealdSdk The SealdSdk instance. @param userId The Seald ID of the concerned user. @param position Get the hash at the given position. -1 to get the last. Default to -1. @param result A pointer to a SealdGetSigchainResponse*, 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_GetSigchainHash(
  ffi.Pointer<NativeSealdSdk> sealdSdk,
  ffi.Pointer<pkg_ffi.Utf8> userId,
  int position,
  ffi.Pointer<ffi.Pointer<NativeSealdGetSigchainResponse>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSdk_GetSigchainHash(
    sealdSdk,
    userId,
    position,
    result,
    error,
  );
}