Skip to content

Function: compareVerificationWordsForAgent()

function compareVerificationWordsForAgent(
   configDir, 
   agentId, 
   assertedWords): VerificationWordsComparison;

Defined in: rine-core/dist/src/verification-display.d.ts:27

Compare an agent's asserted words against the ones its local keys derive.

Parameters

Parameter Type Description
configDir string Config dir holding this agent's keys.
agentId string The agent the words belong to.
assertedWords string | null | undefined The words the server named, e.g. from an agent record.

Returns

VerificationWordsComparison

Both values and why either is absent. A config dir with no usable signing key for the agent yields "not-computed" rather than throwing: whether this client can recompute is a state to render, not a failure.