Package com.klaytn.caver.account
Class AccountKeyNil
- java.lang.Object
-
- com.klaytn.caver.account.AccountKeyNil
-
- All Implemented Interfaces:
IAccountKey
public class AccountKeyNil extends java.lang.Object implements IAccountKey
AccountKeyNil represents an empty key. If an account tries to having an AccountKeyNil object, the transaction will be failed. AccountKeyNil is only used only for TxTypeAccountUpdate transactions with role-based keys. For example, if an account tries to update RoleAccountUpdate key only, the key field of the TxTypeAccountUpdate transaction would be: [AccountKeyNil, NewKey, AccountKeyNil] Then, only the RoleAccountUpdate key is updated. Other roles are not updated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccountKeyNil.AccountKeyNilSerializer
Serialize class to AccountKeyNil object into JSON.
-
Constructor Summary
Constructors Constructor Description AccountKeyNil()
Creates an AccountKeyNil instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountKeyNil
decode(byte[] rlpEncodedKey)
Decodes a RLP-encoded AccountKeyNil byte arraystatic AccountKeyNil
decode(java.lang.String rlpEncodedKey)
Decodes a RLP-encoded AccountKeyNil stringjava.lang.String
getRLPEncoding()
Encodes a AccountKeyNil Object by an RLP-Encoding method.static java.lang.String
getType()
Return an AccountKeyNil's type attribute.
-
-
-
Method Detail
-
decode
public static AccountKeyNil decode(java.lang.String rlpEncodedKey)
Decodes a RLP-encoded AccountKeyNil string- Parameters:
rlpEncodedKey
- RLP-encoded AccountKeyNil string- Returns:
- AccountKeyNil
-
decode
public static AccountKeyNil decode(byte[] rlpEncodedKey)
Decodes a RLP-encoded AccountKeyNil byte array- Parameters:
rlpEncodedKey
- RLP-encoded AccountKeyNil byte array- Returns:
- AccountKeyNil
-
getRLPEncoding
public java.lang.String getRLPEncoding()
Encodes a AccountKeyNil Object by an RLP-Encoding method.- Specified by:
getRLPEncoding
in interfaceIAccountKey
- Returns:
- RLP-encoded AccountKeyNil String
-
getType
public static java.lang.String getType()
Return an AccountKeyNil's type attribute.- Returns:
- AccountKeyNil's type attribute.
-
-