Skip to content

checkSigchainHash

@JvmOverloads

fun checkSigchainHash(userId: String, expectedHash: String, position: Long = -1): CheckSigchainResponse

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.

Return

A CheckSigchainResponse instance containing the response.

Parameters

userIdThe Seald ID of the concerned user.
expectedHashThe expected sigchain hash.
positionPosition of the sigchain transaction against which to check the hash. -1 to check if the hash exist in the sigchain. Default to -1.

Throws

SealdException