public class ByteUtils extends Object
| Constructor and Description |
|---|
ByteUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
fromHex(String hex)
recreate a byte array from hexadecimal
|
static byte[] |
reverse(byte[] data)
reverse a byte array in place WARNING the parameter array is altered and
returned.
|
static String |
toBase58(byte[] b)
convert a byte array to a human readable base58 string.
|
static String |
toBase58WithChecksum(byte[] b)
Encode in base58 with an added checksum of four bytes.
|
static String |
toHex(byte[] data)
convert a byte array to hexadecimal
|
public static String toBase58(byte[] b)
b - byte datapublic static String toBase58WithChecksum(byte[] b)
b - byte[] datapublic static byte[] reverse(byte[] data)
data - ori datapublic static String toHex(byte[] data)
data - byte[] datapublic static byte[] fromHex(String hex)
hex - string dataCopyright © 2018. All rights reserved.