private static async Task <string> getCredentialforRequest(
     CredentialSearchForProofRequest search, string itemReferent)
 {
     try
     {
         return(await AnonCreds.ProverFetchCredentialsForProofRequestAsync(search,
                                                                           itemReferent, 1));
     }
     catch (Exception e)
     {
         throw new Exception($"Error in fetching a credential for {itemReferent}. {e.Message}");
     }
 }