Skip to main content

hashSubarray

@totemsdk/raster-proof


@totemsdk/raster-proof / hashSubarray

Function: hashSubarray()

hashSubarray(bytes, offset, length): string

Hash a chunk's bytes in-place using hashBytes. Kept as a named helper so callers can hash arbitrary sub-byte-ranges without allocating.

Parameters​

bytes​

Uint8Array

offset​

number

length​

number

Returns​

string