Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / toolsetAuthorityHash

Function: toolsetAuthorityHash()

ts
function toolsetAuthorityHash(authorities): string;

Defined in: packages/core/src/tools/toolset-hash.ts:86

The aggregate authority hash (RV1802): sha256 over the JCS-canonical array of per-tool authority records, each carrying its tool name, sorted by name; toolsetHash's exact aggregation shape, over the authority side.

Parameters

ParameterType
authoritiesRecord<string, ToolAuthority>

Returns

string