public void Base58Test() { Assert.Equal(256, typeof(ConvertEx).GetTypeReflector().DeclaredField <int[]>("Base58Map").GetValue(null).Length); Assert.Equal("zpsEBKbce3iT", ConvertEx.ToBase58String("NStandard".Bytes())); Assert.Equal("NStandard", ConvertEx.FromBase58String("zpsEBKbce3iT").String()); Assert.Equal("111zpsEBKbce3iT", ConvertEx.ToBase58String("\0\0\0NStandard".Bytes())); Assert.Equal("\0\0\0NStandard", ConvertEx.FromBase58String("111zpsEBKbce3iT").String()); }
public static byte[] BytesFromBase58(string str) => ConvertEx.FromBase58String(str);