java.lang.Object
org.consensusj.bitcoin.json.conversion.HexUtil

public class HexUtil extends Object
Hex string to hex conversion utility class.
  • Constructor Details

  • Method Details

    • hexStringToByteArray

      public static byte[] hexStringToByteArray(String s)
      Converts a hex-encoded string into a byte array. If you are on Java 17 or later you should use HexFormat
      Parameters:
      s - A string to convert
      Returns:
      The byte array
    • bytesToHexString

      public static String bytesToHexString(byte[] bytes)