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');getStatementRawIdentifier
Get the normalized JSON string for a statement's raw identifier. Generates a deterministic JSON representation of an RDF triple with keys in alphabetical order. This ensures the same statement always produces the same Fide ID across all implementations.
parseFideId
Parse a Fide ID into its constituent components. Decomposes a Fide ID into entity type, source type, and fingerprint, converting hex characters to their corresponding entity type names.