extractFideIdFingerprint
Extract the 38-character fingerprint from a Fide ID. The fingerprint comprises the last 38 hex characters after the type and source bytes, representing the last 19 bytes of the SHA-256 hash used to create the Fide ID.
extractFideIdFingerprint(fideId)
Parameters
fideIdstring*
The Fide ID reference (format: did:fide:0x... or 0x...)
Returns
Prop
Type
import { extractFideIdFingerprint } from '@fide.work/fcp';
const result = extractFideIdFingerprint('did:fide:0x152f02f1d1c1e62b2e569e11818420c1968be3d9');calculateStatementFideId
Calculate a Fide ID for a Statement from its RDF triple components. Creates a statement Fide ID by hashing a canonical JSON representation of the subject-predicate-object triple. The resulting Fide ID always has type and source both set to Statement (0x00...).
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.