Beispiel #1
0
        public void Test_neofx_Base58CheckDecode_matches_neo()
        {
            var @string  = "AXaXZjZGA3qhQRTCsyG5uFKr9HeShgVhTF";
            var expected = Neo.Cryptography.Helper.Base58CheckDecode(@string);

            Span <byte> actual = stackalloc byte[500];

            HashHelpers.TryBase58CheckDecode(@string, actual, out var written).Should().BeTrue();
            actual.Slice(0, written).SequenceEqual(expected).Should().BeTrue();
        }