extractFideIdTypeAndSource

Extract the type and source hex characters from a Fide ID. Returns the first two hex characters after the prefix, which encode the entity type and source type.

extractFideIdTypeAndSource(fideId)

Parameters

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

Returns

Prop

Type

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

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