Skip to content

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.

ParameterType
locationstring

void

Errors ValidationError when location exceeds SERVICE_PROVIDER_REGISTRY.MAX_LOCATION_LENGTH