Esempio n. 1
0
 public static RevokeKeyEntity Create(string pubKey, RevokeKeyType type, string privateKey)
 {
     return(new RevokeKeyEntity
     {
         BsonId = pubKey,
         Type = type,
         PrivateKey = privateKey
     });
 }
Esempio n. 2
0
 public Task AddRevokeKey(string pubkey, RevokeKeyType type, string privateKey = null)
 {
     return(_table.InsertAsync(RevokeKeyEntity.Create(pubkey, type, privateKey)));
 }