Softchat Exception
Safe, stable failures from the public Kotlin API.
These errors intentionally contain no keys, plaintext, ciphertext, or upstream cryptographic diagnostics.
Inheritors
Types
Encoded ciphertext exceeded the cheap pre-decode allocation limit.
Authentication or decryption failed without exposing its exact cause.
NIP-44 encryption was requested with an empty plaintext.
Encryption failed without exposing key or plaintext diagnostics.
Signing failed after validation without exposing cryptographic details.
An event exceeded the portable SDK allocation limit.
The user or host cancelled an external signing operation.
The selected external signer does not provide the requested operation.
The external signer rejected the operation.
An operation was attempted after the identity was erased.
An unexpected implementation failure was redacted.
A signed event's declared ID did not match its canonical fields.
Event JSON was malformed or did not contain the exact NIP-01 fields.
An event kind was outside the portable NIP-01 range.
A signed event's BIP-340 signature was invalid.
A raw event tag was empty or structurally invalid.
An event timestamp was negative or not portable across targets.
An external signature did not authenticate the prepared event.
A rumor was not a valid one-to-one NIP-17 text message.
A NIP-19 display identifier was malformed, unsupported, or oversized.
A NIP-59 envelope failed route, structure, or authentication checks.
A public key was not a valid canonical x-only secp256k1 key.
A secret key was not a valid 32-byte secp256k1 scalar.
A one-to-one NIP-17 text rumor could not be created.
A NIP-59 recipient envelope could not be created.
Plaintext exceeded the supported NIP-44 profile.
A stable redacted protocol, synchronization, media, or session failure.
An encrypted value named an unsupported algorithm.