Class ByteArrayBase

java.lang.Object
org.bitcoinj.secp.internal.ByteArrayBase
All Implemented Interfaces:
Comparable<ByteArray>, ByteArray

public abstract class ByteArrayBase extends Object implements ByteArray
Abstract Base Class for creating ByteArray Implementations
  • Constructor Details

    • ByteArrayBase

      public ByteArrayBase()
  • Method Details

    • toHexString

      public static String toHexString(byte[] bytes)
      Utility method to format hex bytes as string
      Parameters:
      bytes - bytes to format
      Returns:
      hex-formatted String
    • bytes

      public abstract byte[] bytes()
      Description copied from interface: ByteArray
      Get the bytes as an array
      Specified by:
      bytes in interface ByteArray
      Returns:
      the bytes as an array