Esempio n. 1
0
        public void Base6AndBase10()
        {
            var e   = new byte[] { 0, 1 };
            var s10 = Mnemonic.ToDigitsBase10(e);

            Assert.Equal("256", s10);
            var s6 = Mnemonic.ToDigitsBase6(e);

            Assert.Equal("1104", s6);
            var bn10 = Mnemonic.Base10ToBigInteger(s10);

            Assert.Equal(256, bn10);
            var bn6 = Mnemonic.Base6ToBigInteger(s6);

            Assert.Equal(256, bn6);
        }