Skip to content

Function: verificationWordsForKey()

function verificationWordsForKey(publicKey): string;

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

The five words for a raw 32-byte Ed25519 public key.

Parameters

Parameter Type Description
publicKey Uint8Array Raw public key bytes — not base64, not a JWK.

Returns

string

Throws

If the key is not 32 bytes. The server derives words from whatever it decodes; refusing is the stricter answer and cannot disagree with it about any real Ed25519 key.