Fide logoFIDE

calculateCanonicalStatementSetRoot

Protocol-level deterministic root for a canonical statement set.

Node Runtime Required

This function requires a Node.js runtime and is disabled in the browser docs preview.
calculateCanonicalStatementSetRoot(statementFideIds)

Parameters

statementFideIdsFideId[]*
Statement Fide IDs in any order.

Returns

Prop

Type

import { calculateCanonicalStatementSetRoot } from '@fide-work/context-protocol';

const result = await calculateCanonicalStatementSetRoot([\"did:fide:0x0000fe0fcf95627f2769f309f672ff7ff0ca0f44\", \"did:fide:0x00006fd990f48ec1ec4f4e0fb4ef80f238f78339\"]);

Related Constants

Statement

Complete statement object with all required fields **Important**: Both Fide IDs and reference identifiers are required because: - Fide IDs are one-way hashes - cannot be reversed to get reference identifiers - Protocol specification requires both fields - Indexers need reference identifiers for lookup tables and human-readable display - Enables mapping back to human-readable identifiers for debugging and display

export const Statement: any

Type Definitions

type FideId

Full Fide ID format (with did:fide:0x prefix). Length: 11 ("did:fide:0x") + 40 hex = 51 chars.

`did:fide:0x${string}`