Esempio n. 1
0
        public void Bech32Address_Encode()
        {
            var addr     = "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4";
            var hex_prog = "751e76e8199196d454941c45d1b3a323f1433bd6";
            var bc2      = new Bech32Address(AddressNetwork.Main, 0, hex_prog.FromHex());

            Assert.Equal(addr, bc2.ToString());
        }
Esempio n. 2
0
        public void Bech32Address_Decode()
        {
            var bc1 = new Bech32Address("bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4");

            Assert.Equal("bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4", bc1.ToString());
        }