Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / hashRegion

Function: hashRegion()

ts
function hashRegion(input, seed?): Promise<string>;

Defined in: packages/security/src/guard/xxhash.ts:31

Convenience: hash a snapshot region asynchronously. The wrapper exists so callers can micro-benchmark the helper without rewriting the surrounding loop.

Parameters

ParameterTypeDefault value
inputstring | Uint8Array&lt;ArrayBufferLike&gt;undefined
seednumber0

Returns

Promise&lt;string&gt;

Stable