generateRbt method
Implementation
Future<Status> generateRbt(
{required String did,
required double tokenCount,
required String accessToken,
required String gateway,
required String imagePath,
required String privateKeyString}) async {
RubixServiceClient stub =
getConnection(gateway: gateway, accessToken: accessToken);
var privateKey = KeyPair().privateKeyFromPem(privateKeyString);
var response =
await stub.generateRbt(GenerateReq(did: did, tokenCount: tokenCount));
print(response);
var signResp = signResponse(
initiateTransactionResponse: response,
imagePath: imagePath,
privateKey: privateKey,
stub: stub,onlyPrivateKey: true);
return signResp;
}