Skip to main content

@idpass/data-collect-core / computeScopeHash

Function: computeScopeHash()

computeScopeHash(scope): string

Defined in: services/ScopeResolver.ts:98

SHA-256 over the canonical JSON serialization of an effective scope. The schemaVersion is included so that a future schema bump invalidates old hashes deterministically. Output: sha256:<64-hex>.

Parameters

scope

ReadonlyEffectiveScope

Returns

string