public class Account extends MychainObject implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected HashTypeEnum |
hashTypeEnum |
static int |
TX_FIXED_FIELD_NUM |
protected short |
version |
| 构造器和说明 |
|---|
Account() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Account |
builder(Identity hash,
BigInteger balance,
AuthMap authMap,
PublicKey recoverKey,
long recoverTimestamp,
AccountStatus status) |
static Account |
builder(Identity hash,
BigInteger balance,
AuthMap authMap,
PublicKey recoverKey,
long recoverTimestamp,
AccountStatus status,
byte[] encryptionKey) |
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
AuthMap |
getAuthMap() |
BigInteger |
getBalance() |
byte[] |
getEncryptionKey() |
Identity |
getIdentity() |
PublicKey |
getRecoverKey() |
long |
getRecoverTimestamp() |
AccountStatus |
getStatus() |
short |
getVersion() |
boolean |
isValid() |
void |
setAuthMap(AuthMap authMap) |
void |
setBalance(BigInteger balance) |
void |
setEncryptionKey(byte[] encryptionKey) |
void |
setHashTypeEnum(HashTypeEnum hashTypeEnum) |
void |
setIdentity(Identity id) |
void |
setRecoverKey(PublicKey recoverKey) |
void |
setRecoverTimestamp(long recoverTimestamp) |
void |
setStatus(AccountStatus status) |
void |
setVersion(short version) |
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
byte[] |
toStorageRlp() |
toStringpublic static final int TX_FIXED_FIELD_NUM
protected short version
protected HashTypeEnum hashTypeEnum
public void setHashTypeEnum(HashTypeEnum hashTypeEnum)
public static Account builder(Identity hash, BigInteger balance, AuthMap authMap, PublicKey recoverKey, long recoverTimestamp, AccountStatus status, byte[] encryptionKey)
public static Account builder(Identity hash, BigInteger balance, AuthMap authMap, PublicKey recoverKey, long recoverTimestamp, AccountStatus status)
public Identity getIdentity()
public void setIdentity(Identity id)
public BigInteger getBalance()
public void setBalance(BigInteger balance)
public AuthMap getAuthMap()
public void setAuthMap(AuthMap authMap)
public PublicKey getRecoverKey()
public void setRecoverKey(PublicKey recoverKey)
public long getRecoverTimestamp()
public void setRecoverTimestamp(long recoverTimestamp)
public AccountStatus getStatus()
public void setStatus(AccountStatus status)
public byte[] getEncryptionKey()
public void setEncryptionKey(byte[] encryptionKey)
public short getVersion()
public void setVersion(short version)
public boolean isValid()
public byte[] toRlp()
toRlp 在类中 MychainObjectpublic void fromRlp(RlpList list)
fromRlp 在类中 MychainObjectlist - the rlp bytespublic void toJson(com.alibaba.fastjson.JSONObject jsonObject)
toJson 在类中 MychainObjectjsonObject - the json objectpublic void fromJson(com.alibaba.fastjson.JSONObject jsonObject)
fromJson 在类中 MychainObjectjsonObject - the json objectpublic byte[] toStorageRlp()
Copyright © 2022. All rights reserved.