Class HexUtil
java.lang.Object
org.consensusj.bitcoin.json.conversion.HexUtil
Hex string to hex conversion utility class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
bytesToHexString
(byte[] bytes) static byte[]
Converts a hex-encoded string into a byte array.
-
Constructor Details
-
HexUtil
public HexUtil()
-
-
Method Details
-
hexStringToByteArray
Converts a hex-encoded string into a byte array. If you are on Java 17 or later you should useHexFormat
- Parameters:
s
- A string to convert- Returns:
- The byte array
-
bytesToHexString
-