live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/agent-core


@orangecheck/agent-core / canonicalizeScopes

Function: canonicalizeScopes()

function canonicalizeScopes(scopes: string[]): string[];

Defined in: agent-core/src/canonical.ts:36

Canonicalize and sort a list of scope strings for the delegation canonical message. Each scope is first parsed, then re-emitted in canonical form (constraints sorted by key), and the whole list is sorted lexicographically.

Parameters

ParameterType
scopesstring[]

Returns

string[]