Interface RLPLayoutable

All Known Implementing Classes:
AccessList, Address, Block, BlockHeader, BloomFilter, Hash, MerkleRoot, Natural, RLP, StorageKey, Transaction

public interface RLPLayoutable
Implemented by object that have an RLP layout, i.e. objects for which the Ethereum specifies such a layout, because it needs the RLP encoding to compute a hash, Merkle root, or to transmit the object over the network.

See this package README file for more information.

  • Method Summary

    Modifier and Type Method Description
    default byte[] rlpEncode()
    Return the RLP encoding of the object, which is rlpLayout().encode().
    default String rlpHexString()
    Returns the hex-string representation of the rlp encoding of the object, including leading 0 if any, as per ByteUtils.toFullHexString(byte[]).
    RLP rlpLayout()
    Returns the RLP layout for the object.
  • Method Details

    • rlpLayout

      RLP rlpLayout()
      Returns the RLP layout for the object.
    • rlpEncode

      default byte[] rlpEncode()
      Return the RLP encoding of the object, which is rlpLayout().encode().
    • rlpHexString

      default String rlpHexString()
      Returns the hex-string representation of the rlp encoding of the object, including leading 0 if any, as per ByteUtils.toFullHexString(byte[]).