Skip to content

Function: compareVerificationWords()

function compareVerificationWords(heldKey, assertedWords): VerificationWordsComparison;

Defined in: rine-core/dist/src/crypto/verification-words.d.ts:88

Compare the words this client computes against the words the server asserts.

A mismatch is a designed state, not an error: it is returned, never thrown, and it never gates sending. Both values come back so a surface can show both.

Parameters

Parameter Type Description
heldKey HeldSigningKey | null Key material this client holds for the agent, or null when it holds none. 🔴 Never pass a key just fetched from GET /agents/{id}/keys — that is the server's own assertion, and feeding it back in makes the result "match" no matter what is true.
assertedWords string | null | undefined The words the server named, e.g. from an agent card.

Returns

VerificationWordsComparison