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.

parseFideId(fideId)

Parameters

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

Returns

Prop

Type

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

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

Related Constants

FIDE_CHAR_TO_ENTITY_TYPE

Reverse lookup: character code to entity type name

export const FIDE_CHAR_TO_ENTITY_TYPE: Record<string, "Statement" | "Person" | "Organization" | "AutonomousAgent" | "Place" | "Event" | "Product" | "CreativeWork">

Type Definitions

type ParsedFideId

Parsed Fide ID components.

ParsedFideId

Properties

Prop

Type