Functions
base64ToBytes
- base64ToBytes(base64: string): Uint8Array
Parameters
Returns Uint8Array
bufToHex
- bufToHex(buf: Uint8Array | Buffer | ArrayBuffer): string
Parameters
buf: Uint8Array | Buffer | ArrayBuffer
Returns string
bytesToBase64
- bytesToBase64(bytes: Uint8Array): Promise<string>
Parameters
Returns Promise<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 base64 string to byte array.