コード例 #1
0
        public void shouldConvertBackAndForth()
        {
            string str  = RandomString(1000);
            string back = TrytesConverter.ToString(TrytesConverter.ToTrytes(str));

            Assert.AreEqual(str, back);
        }
コード例 #2
0
ファイル: Iota.cs プロジェクト: jacovanc/MQTTIotaWindowsApp
        internal void CreateTransaction()
        {
            var      address  = client.GetNewAddress(seed, 0, false, 1, false);
            Transfer transfer = new Transfer(address.First(), 0, TrytesConverter.ToTrytes("Test Iota Message"), TrytesConverter.ToTrytes("Test Tag"));

            client.SendTransfer(seed, 10, 18, new Transfer[] { transfer });
        }
コード例 #3
0
 public void shouldConvertStringToTrytes()
 {
     Assert.AreEqual("IC", TrytesConverter.ToTrytes("Z"));
     Assert.AreEqual(TrytesConverter.ToTrytes("JOTA JOTA"), "TBYBCCKBEATBYBCCKB");
 }