Utilities
class Utilities (View source)
Helper Utilities
Methods
static string
hash256(string $data, bool $raw = false)
Run sha256 hash on $data twice
static string
sha256(string $data, bool $raw = false)
Run sha256 hash on $data
static int|float|string
swapEndian(string $hex, bool $hexdec = true)
Swap endianness of an hexadecimal string.
static string
varIntEncode(int $n, bool $prefix = true)
Encode an int to a hexadecimal variable int.
Details
static string
hash256(string $data, bool $raw = false)
Run sha256 hash on $data twice
static string
sha256(string $data, bool $raw = false)
Run sha256 hash on $data
static int|float|string
swapEndian(string $hex, bool $hexdec = true)
Swap endianness of an hexadecimal string.
static string
varIntEncode(int $n, bool $prefix = true)
Encode an int to a hexadecimal variable int.