SealdSdk_GetSigchainHash method
int
SealdSdk_GetSigchainHash(
- Pointer<
NativeSealdSdk> sealdSdk, - Pointer<
Utf8> userId, - int position,
- Pointer<
Pointer< result,NativeSealdGetSigchainResponse> > - Pointer<
Pointer< error,NativeSealdError> >
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,
);
}