public class Base58 extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static char[] |
ALPHABET |
| 构造器和说明 |
|---|
Base58() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(String input)
Decodes the given base58 string into the original entity bytes.
|
static byte[] |
decodeChecked(String input)
Decodes the given base58 string into the original entity bytes, using the checksum in the
last 4 bytes of the decoded entity to verify that the rest are correct.
|
static BigInteger |
decodeToBigInteger(String input)
先将给定的Base58字符串解码为原始数据字节,然后再将字节数组转为对应的BigInteger
|
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 Exception
input - the base58-encoded string to decodeException - if the given string is not a valid base58 stringpublic static BigInteger decodeToBigInteger(String input) throws Exception
input - Base58字符串Exceptionpublic static byte[] decodeChecked(String input) throws Exception
input - the base58-encoded string to decode (which should include the checksum)Exception - if the input is not base 58 or the checksum does not validate.Copyright © 2021. All rights reserved.