+<SDKFunctionPageInteractive data={{"name":"calculateFideId","description":"Core primitive: calculate a Fide ID from type codes and reference identifier.\n\nDeterministic SHA-256 hash of the reference identifier (UTF-8), then constructs\n`did:fide:0x` + 2 hex (entity type) + 2 hex (reference type) + first 36 hex of hash = 40 hex total.","section":"@Fide Work","signatures":[{"description":"Core primitive: calculate a Fide ID from type codes and reference identifier.\n\nDeterministic SHA-256 hash of the reference identifier (UTF-8), then constructs\n`did:fide:0x` + 2 hex (entity type) + 2 hex (reference type) + first 36 hex of hash = 40 hex total.","parameters":[{"name":"entityType","type":"FideEntityType","optional":false,"description":"The entity type.","example":"Person","options":["Statement","Person","Organization","SoftwareAgent","NetworkResource","PlatformAccount","CryptographicAccount","CreativeWork","Concept","Place","Event","Action","PhysicalObject","TextLiteral","IntegerLiteral","DecimalLiteral","BoolLiteral","DateLiteral","YearMonthLiteral","YearLiteral","TimeLiteral","DateTimeLiteral","DurationLiteral","URILiteral","JSONLiteral"]},{"name":"referenceType","type":"FideEntityType","optional":false,"description":"The reference type.","example":"NetworkResource","options":["Statement","Person","Organization","SoftwareAgent","NetworkResource","PlatformAccount","CryptographicAccount","CreativeWork","Concept","Place","Event","Action","PhysicalObject","TextLiteral","IntegerLiteral","DecimalLiteral","BoolLiteral","DateLiteral","YearMonthLiteral","YearLiteral","TimeLiteral","DateTimeLiteral","DurationLiteral","URILiteral","JSONLiteral"]},{"name":"referenceIdentifier","type":"string","optional":false,"description":"The reference identifier string to hash (UTF-8 encoded).","example":"https://x.com/alice"},{"name":"options","type":"FideIdCalculationOptions","optional":true,"description":""}],"returnType":"Promise<`did:fide:0x${string}`>","returnDescription":"Promise resolving to the calculated Fide ID with format `did:fide:0x{entityTypeCode}{referenceTypeCode}{fingerprint}`","infoCallout":{"title":"Node Runtime Required","body":"This function requires a Node.js runtime and is disabled in the browser docs preview."},"referencedTypes":[{"name":"FideEntityType","description":"Valid Fide entity type names derived from `FIDE_ENTITY_TYPE_MAP`.","type":"\"Statement\" | \"Person\" | \"Organization\" | \"SoftwareAgent\" | \"NetworkResource\" | \"PlatformAccount\" | \"CryptographicAccount\" | \"CreativeWork\" | \"Concept\" | \"Place\" | \"Event\" | \"Action\" | \"PhysicalObject\" | \"TextLiteral\" | \"IntegerLiteral\" | \"DecimalLiteral\" | \"BoolLiteral\" | \"DateLiteral\" | \"YearMonthLiteral\" | \"YearLiteral\" | \"TimeLiteral\" | \"DateTimeLiteral\" | \"DurationLiteral\" | \"URILiteral\" | \"JSONLiteral\"","docsUrl":"/vocabulary"},{"name":"FideIdCalculationOptions","description":"Options for Fide ID calculation helpers.\n\nReserved for forward-compatible toggles without changing function signatures.","type":"FideIdCalculationOptions","entries":{"dangerouslySkipReferenceTypePolicy":{"description":"If true, skip reference-type policy enforcement in calculateFideId.\nDefault is false (policy enforced).","type":"boolean","required":false},"dangerouslySkipReferenceIdentifierPolicy":{"description":"If true, skip referenceIdentifier policy enforcement in calculateFideId.\nDefault is false (policy enforced).","type":"boolean","required":false}}}]}],"constants":[],"referencedTypes":[{"name":"FideEntityType","description":"Valid Fide entity type names derived from `FIDE_ENTITY_TYPE_MAP`.","type":"\"Statement\" | \"Person\" | \"Organization\" | \"SoftwareAgent\" | \"NetworkResource\" | \"PlatformAccount\" | \"CryptographicAccount\" | \"CreativeWork\" | \"Concept\" | \"Place\" | \"Event\" | \"Action\" | \"PhysicalObject\" | \"TextLiteral\" | \"IntegerLiteral\" | \"DecimalLiteral\" | \"BoolLiteral\" | \"DateLiteral\" | \"YearMonthLiteral\" | \"YearLiteral\" | \"TimeLiteral\" | \"DateTimeLiteral\" | \"DurationLiteral\" | \"URILiteral\" | \"JSONLiteral\"","docsUrl":"/vocabulary"},{"name":"FideIdCalculationOptions","description":"Options for Fide ID calculation helpers.\n\nReserved for forward-compatible toggles without changing function signatures.","type":"FideIdCalculationOptions","entries":{"dangerouslySkipReferenceTypePolicy":{"description":"If true, skip reference-type policy enforcement in calculateFideId.\nDefault is false (policy enforced).","type":"boolean","required":false},"dangerouslySkipReferenceIdentifierPolicy":{"description":"If true, skip referenceIdentifier policy enforcement in calculateFideId.\nDefault is false (policy enforced).","type":"boolean","required":false}}}]}} />
0 commit comments