public class Base58
extends java.lang.Object
Constructor and Description |
---|
Base58() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] base58EncodedData)
Method to decode a base58 encoded byte array.
|
static byte[] |
decode(java.lang.String base58EncodedString)
Utility method to decode a String directly.
|
static byte[] |
encode(byte[] data)
Method to base58 encode data.
|
static java.lang.String |
encodeToString(byte[] data)
Help method to encode data directly into a String
|
public static byte[] encode(byte[] data)
data
- the data to encode.public static java.lang.String encodeToString(byte[] data)
data
- the data to encode.public static byte[] decode(byte[] base58EncodedData) throws java.lang.IllegalArgumentException
base58EncodedData
- the base58 encoded data to decode.java.lang.IllegalArgumentException
- if encoded data contained invalid encodingpublic static byte[] decode(java.lang.String base58EncodedString) throws java.lang.IllegalArgumentException
base58EncodedString
- the base58 String to decode.java.lang.IllegalArgumentException
- if encoded data contained invalid encoding