Example #1
0
        public void TestRoundtrip()
        {
            var set = new List <UInt32>()
            {
                471105047
            };

            set.ForEach(compact => {
                var expected = Mint.BigToCompact(Mint.DiffToTarget(Mint.CompactToDiff(compact)));

                bool isValid = compact == expected;

                Assert.IsTrue(isValid);
            });
        }