Class StorageKey

java.lang.Object
com.norswap.nanoeth.data.StorageKey
All Implemented Interfaces:
RLPLayoutable

@Wrapper
public final class StorageKey
extends Object
implements RLPLayoutable
Represents a 256-bit (32 bytes) Ethereum storage key within an account's storage tree.
  • Field Details

    • bytes

      public final byte[] bytes
      The 32-bytes big-endian representation of the storage key.
  • Constructor Details

    • StorageKey

      public StorageKey​(@Retained byte[] bytes)
    • StorageKey

      public StorageKey​(String hexString)
      Creates a hash from a hex string (e.g. 0x123).

      If the post-0x part of the hex string is not 64 characters long, the key will be padded with zeroes at the start so that it is 32 bytes long.

  • Method Details