public (bool status, string data, string error) RegisterAsDelegate(string username, string passPhrase, string secondPassPhrase = null) { var tx = TransactionApi.CreateDelegate(username, passPhrase, secondPassPhrase); return(TransactionService.PostTransaction(tx)); }
public void CreateDelegateTest() { var tx = TransactionApi.CreateDelegate("testdelegate", _passPhrase); var json = tx.ToJson(); Assert.IsTrue(Crypto.Verify(tx)); Assert.AreEqual(json, tx.ToJson()); }
public void CreateDelegateTest() { var tx = TransactionApi.CreateDelegate("polpolo", "this is a top secret passphrase"); var json = tx.ToJson(); Assert.IsTrue(Crypto.Verify(tx)); Assert.AreEqual(json, tx.ToJson()); }
public async Task <SmartHoldemTransactionPostResponse> RegisterAsDelegateAsync(string username) { var tx = TransactionApi.CreateDelegate(username, _passPhrase, _secondPassPhrase); return(await TransactionService.PostTransactionAsync(tx)); }
public SmartHoldemTransactionPostResponse RegisterAsDelegate(string username) { var tx = TransactionApi.CreateDelegate(username, _passPhrase, _secondPassPhrase); return(TransactionService.PostTransaction(tx)); }