Step eight of this wiki web page provides this hex worth: 00010966776006953D5567439E5E39F86A0D273BEED61967F6

Step 9 converts it to this base58 string:16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM

I am attempting to implement the conversion operate utilizing the pseudocode from this wiki web page. That is my implementation (in Java):

    String enter = "00010966776006953D5567439E5E39F86A0D273BEED61967F6"
    BigInteger bigInteger = new BigInteger(enter , 16);
    String code_string = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
    StringBuilder output = new StringBuilder();

    whereas(bigInteger.compareTo(BigInteger.ZERO) == 1)

    int i=zero;
    whereas(concat.charAt(i) == 'zero')

This prints out 1116UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM. That is near what the wiki web page produces, however not fairly, there are 2 additional main 1s. That is from the two main zeros within the enter string. Why would not the wiki instance get my outcome?

Source link


Please enter your comment!
Please enter your name here