Functions
bufToHex
- bufToHex(buf: Uint8Array | Buffer | ArrayBuffer): string
Parameters
buf: Uint8Array | Buffer | ArrayBuffer
Returns string
bytesToHex
- bytesToHex(bytes: Uint8Array): string
equalByteArrays
- equalByteArrays(a: string | Uint8Array, b: string | Uint8Array): boolean
Parameters
a: string | Uint8Array
b: string | Uint8Array
Returns boolean
hexToBuf
- hexToBuf(hex: string | Uint8Array | Buffer): Buffer
Parameters
hex: string | Uint8Array | Buffer
Returns Buffer
hexToBytes
- hexToBytes(hex: string | Uint8Array): Uint8Array
Parameters
Returns Uint8Array
keccak256Buf
- keccak256Buf(message: Message): Uint8Array
Parameters
Returns Uint8Array
Convert input to hex string (no
0x
prefix).Use
bytesToHex
instead.