public abstract class Base58
extends java.lang.Object
Constructor and Description |
---|
Base58() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(java.lang.String input)
Decodes the given base58 string into the original data bytes.
|
static java.lang.String |
encode(byte[] input)
Encodes the given bytes as a base58 string (no checksum is appended).
|
public static java.lang.String encode(byte[] input)
input
- the bytes to encodepublic static byte[] decode(java.lang.String input) throws java.lang.IllegalArgumentException
input
- the base58-encoded string to decodejava.lang.IllegalArgumentException
- if the given string is not a valid base58 string