isValidFideId

Validate that a string is a properly formatted Fide ID. Checks that the value follows the standard Fide ID format: `did:fide:0x` prefix followed by exactly 40 hexadecimal characters (case-insensitive).

isValidFideId(value)

Parameters

valuestring*
The Fide ID reference (format: did:fide:0x... or 0x...)

Returns

Prop

Type

import { isValidFideId } from '@fide.work/fcp';

const result = isValidFideId('did:fide:0x152f02f1d1c1e62b2e569e11818420c1968be3d9');