validateLocation
validateLocation(
location):void
Defined in: packages/synapse-core/src/sp-registry/validation.ts:70
Defensive check for the location capability value byte length.
The on-chain MAX_LOCATION_LENGTH = 128 constant is declared but not
individually enforced — the stricter MAX_CAPABILITY_VALUE_LENGTH = 128
covers it transitively. Kept here to surface a clear error before the
value is hex-encoded into a capability entry.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
location | string |
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Errors ValidationError when location exceeds SERVICE_PROVIDER_REGISTRY.MAX_LOCATION_LENGTH