Skip to content

Variable: SENDER_KEY_UNAVAILABLE_CODE

const SENDER_KEY_UNAVAILABLE_CODE: "sender_key_unavailable" = "sender_key_unavailable";

Defined in: rine-core/dist/src/sender-key-words.d.ts:66

Discriminator carried on every SenderKeyUnavailableError.

A stable field rather than a name, so a consumer that catches this across a bundle boundary — where two copies of rine-core make instanceof answer false — still has something to branch on that is not the sentence's words.

Exported because it is also the value of the SDKs' decrypt_error_code: a row that could not be opened carries this code beside the sentence, and a renderer decides which tier to print by comparing against this constant. Comparing against the sentence's words instead is the stringly-typed API the whole module exists to remove — and the words are meant to be rewritten.

🔴 It means the verdict, not the symptom: it is set only where the one-shot recovery has already run and come back with nothing (see SenderKeyUnavailableError). A failure that never got that far is not this code.