Class 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.
    • 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 array
      static AccountKeyNil decode​(java.lang.String rlpEncodedKey)
      Decodes a RLP-encoded AccountKeyNil string
      java.lang.String getRLPEncoding()
      Encodes a AccountKeyNil Object by an RLP-Encoding method.
      static java.lang.String getType()
      Return an AccountKeyNil's type attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccountKeyNil

        public AccountKeyNil()
        Creates an AccountKeyNil instance.
    • 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 interface IAccountKey
        Returns:
        RLP-encoded AccountKeyNil String
      • getType

        public static java.lang.String getType()
        Return an AccountKeyNil's type attribute.
        Returns:
        AccountKeyNil's type attribute.