public class Base58 extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
ALPHABET |
Constructor and Description |
---|
Base58() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String input)
Decodes the given base58 string into the original data bytes.
|
static BigInteger |
decodeToBigInteger(String input) |
static String |
encode(byte[] input)
Encodes the given bytes as a base58 string (no checksum is appended).
|
public static String encode(byte[] input)
input
- the bytes to encodepublic static byte[] decode(String input) throws IllegalArgumentException
input
- the base58-encoded string to decodeIllegalArgumentException
- if the given string is not a valid base58 stringpublic static BigInteger decodeToBigInteger(String input) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2019. All rights reserved.