getSigchainHashAsync method
Get a user's sigchain transaction hash at index position
.
userId
- The Seald ID of the concerned user.
position
- Get the hash at the given position. -1 to get the last. Default to -1.
Returns a SealdGetSigchainResponse instance.
Implementation
Future<SealdGetSigchainResponse> getSigchainHashAsync(String userId,
{int position = -1}) {
return compute(
(Map<String, dynamic> args) =>
getSigchainHash(args["userId"], position: args["position"]),
{"userId": userId, "position": position});
}