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