public class Address extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ADDRESS_LENGTH
hash length
|
protected byte[] |
addressBytes |
protected byte[] |
hash160
hash160 of public key
|
static int |
RIPEMD160_LENGTH
RIPEMD160 length
|
| 构造器和说明 |
|---|
Address(int chainId,
byte addressType,
byte[] hash160) |
Address(int chainId,
String prefix,
byte addressType,
byte[] hash160) |
Address(String address) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
static Address |
fromHashs(byte[] hashs) |
static Address |
fromHashs(String address) |
byte[] |
getAddressBytes() |
byte |
getAddressType() |
String |
getBase58() |
int |
getChainId() |
byte[] |
getHash160() |
String |
getPrefix() |
void |
setAddressBytes(byte[] addressBytes) |
void |
setAddressType(byte addressType) |
static int |
size() |
String |
toString()
默认返回base58编码的地址
|
public static final int ADDRESS_LENGTH
public static final int RIPEMD160_LENGTH
protected byte[] hash160
protected byte[] addressBytes
public Address(String address)
public Address(int chainId,
byte addressType,
byte[] hash160)
public Address(int chainId,
String prefix,
byte addressType,
byte[] hash160)
public byte[] getHash160()
public String getPrefix()
public int getChainId()
public static Address fromHashs(byte[] hashs)
public byte[] getAddressBytes()
public void setAddressBytes(byte[] addressBytes)
public byte getAddressType()
public void setAddressType(byte addressType)
public static int size()
public String getBase58()
Copyright © 2021. All rights reserved.