Base58-encode String

Base58-encode String

I would like to Base58-encode this String:

    56379c7bcd6b41188854e74169f844e8676cf8b8

My current Java code looks like this:

    String test9 = "56379c7bcd6b41188854e74169f844e8676cf8b8";
    byte[] b2 = new BigInteger(test9,16).toByteArray();
    String test8 = Base58.encode(b2);
    System.out.println(test8);

As result I get:

    2CffxtJsCdzJEaHXHjSkvb12p12P

but I should get:

    39YteymR86cG7V3Kijg8Gm2ST1r4nTeM1b

Can someone help me, please?

http://ift.tt/2CmMaR9

Comments

Popular posts from this blog

Unable to send raw transaction: mandatory-script-verify-flag-failed

ETH To The Moon / Bank of England Cryptocurrency? / BTC Dominance / More (The Crypt0 Minute)

My blockchain.info wallet was hacked. How can I create a double send to foil the attacker?