calculateStatementFideId

Calculate a Fide ID for a Statement from its RDF triple components. Creates a statement Fide ID by hashing the reference identifier: concatenation of subject, property, and object Fide IDs in that order, separated by ASCII `|`. No whitespace. This helper always returns the self-referential Statement form (Entity Type/Reference Type = `0000`).

Node Runtime Required

This function requires a Node.js runtime and is disabled in the browser docs preview.
calculateStatementFideId(subjectFideId, propertyFideId, objectFideId, options)

Parameters

subjectFideIdstring*
The subject Fide ID (full format: `did:fide:0x` + 40 hex chars).
propertyFideIdstring*
The property Fide ID (full format: `did:fide:0x` + 40 hex chars).
objectFideIdstring*
The object Fide ID (full format: `did:fide:0x` + 40 hex chars).
optionsFideIdCalculationOptions
Invalid structured input. Switch to JSON mode to fix parse errors.

Returns

Prop

Type

import { calculateStatementFideId } from '@fide-work/id';

const result = await calculateStatementFideId(
  'did:fide:0x10205fcbdc6d73bcfcd2c73eb4795c2f02f1d1c1',
  'did:fide:0x312047e49369039d57063d0535a246065fbf9c9e',
  'did:fide:0x1020f200f70f531f0f9cce26e9f4bf0bfa5f15d6',
  
);

Type Definitions

type FideIdCalculationOptions

Options for Fide ID calculation helpers. Reserved for forward-compatible toggles without changing function signatures.

FideIdCalculationOptions

Properties

Prop

Type