Exemple #1
0
        public void FromBase6()
        {
            var rolls1 = "10000000000000000000000000000000000000000000000002";
            var m1     = Mnemonic.FromBase6(rolls1);

            Assert.Equal("acoustic abandon abandon abandon anchor cancel pole advance naive alpha noodle slogan", m1.Words);

            var rolls2 = "20433310335200331223501035145525323501554453150402";
            var m2     = Mnemonic.FromBase6(rolls2);

            Assert.Equal("little jar barrel spatial tenant business manual cabin pig nerve trophy purity", m2.Words);

            var rolls3 = "2043331033520033122350103533025405142024330443100234401130333301433333523345145525323501554453150402";
            var m3     = Mnemonic.FromBase6(rolls3, 256);

            Assert.Equal("little jar crew spice goat sell journey behind used choose eyebrow property audit firm later blind invite fork camp shock floor reduce submit bronze", m3.Words);
        }