Class ByteUtils

java.lang.Object
org.bitcoinj.secp.internal.ByteUtils

public class ByteUtils extends Object
  • Constructor Details

    • ByteUtils

      public ByteUtils()
  • Method Details

    • compareUnsigned

      public static int compareUnsigned(byte[] a, byte[] b)
      Compare byte arrays treating each byte as unsigned.
      Parameters:
      a - byte array to compare
      b - byte array to compare
      Returns:
      a negative integer if a < b, zero if a == b, or a positive integer if a > b
    • toHexString

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