public void SignedTransaction_Xml() { var transactionXml = File.ReadAllText(PathFor("SignedTransaction.xml")); _service = new CoreService("", "", "RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSylzM2ZzTWFwVH4ucG", ""); var result = _service.ValidateTransactionSignature(transactionXml); Assert.IsTrue(result); }
public void SignedTransaction_Transaction() { var xmlpath = PathFor("SignedTransaction.xml"); _service = new CoreService("", "", "RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSylzM2ZzTWFwVH4ucG", ""); var transaction = _service.Deserialize<Transaction>(File.ReadAllText(xmlpath)); var actual = _service.ValidateTransactionSignature(transaction); Assert.IsTrue(actual); }