public class Base58 extends Object
Constructor and Description |
---|
Base58() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(CharSequence encoded)
Base58解码
|
static byte[] |
decodeChecked(CharSequence encoded)
Base58解码
解码包含标志位验证和版本呢位去除 |
static byte[] |
decodeChecked(CharSequence encoded,
boolean withVersion)
Base58解码
解码包含标志位验证和版本呢位去除 |
static String |
encode(byte[] data)
Base58编码
|
static String |
encodeChecked(Integer version,
byte[] data)
Base58编码
包含版本位和校验位 |
public static String encodeChecked(Integer version, byte[] data)
version
- 编码版本,null
表示不包含版本位data
- 被编码的数组,添加校验和。public static String encode(byte[] data)
data
- 被编码的数据,不带校验和。public static byte[] decodeChecked(CharSequence encoded) throws ValidateException
encoded
- 被解码的base58字符串ValidateException
- 标志位验证错误抛出此异常public static byte[] decodeChecked(CharSequence encoded, boolean withVersion) throws ValidateException
encoded
- 被解码的base58字符串withVersion
- 是否包含版本位ValidateException
- 标志位验证错误抛出此异常public static byte[] decode(CharSequence encoded)
encoded
- 被编码的base58字符串Copyright © 2024. All rights reserved.