@orangecheck/agent-core / encodeScopesPayload
Function: encodeScopesPayload()
function encodeScopesPayload(scopes: string[]): Uint8Array;
Defined in: agent-core/src/private-scope.ts:28
The plaintext payload sealed inside the OC Lock envelope. Canonical JSON
array of scope strings. Scopes are first put in canonical form (constraints
sorted by key) and the array is sorted lexicographically — same discipline
as v1.0 public-mode scopes field, so that the canonical-message bytes
match byte-for-byte across modes.
Parameters
| Parameter | Type |
|---|---|
scopes | string[] |
Returns
Uint8Array