StaticfromCreates new hex string from Buffer
A buffer to convert
New HexString
StaticfromCreates new hex string from Uint8Array
Uint8Array to convert
New HexString
StaticensureEnsures hexString is instance of HexString class
String to check
New HexString if hexString is regular string or hexString if it is HexString instance
Getter for inner hexString
Inner hex string
Overrides default toString method
Inner hex string
Converts hex string to a Uint8Array
Uint8Array from inner hexString without prefix
Creates new HexString instance from regular string. If specified string already starts with "0x" prefix, it will not add another one
String to convert
A util class for working with hex strings. Hex strings are strings that are prefixed with
0x