Types

Link copied to clipboard

Encoded ciphertext exceeded the cheap pre-decode allocation limit.

Link copied to clipboard

Authentication or decryption failed without exposing its exact cause.

Link copied to clipboard

NIP-44 encryption was requested with an empty plaintext.

Link copied to clipboard

Encryption failed without exposing key or plaintext diagnostics.

Link copied to clipboard

Signing failed after validation without exposing cryptographic details.

Link copied to clipboard

An event exceeded the portable SDK allocation limit.

Link copied to clipboard

The user or host cancelled an external signing operation.

Link copied to clipboard

The selected external signer does not provide the requested operation.

Link copied to clipboard

The external signer rejected the operation.

Link copied to clipboard

An operation was attempted after the identity was erased.

Link copied to clipboard

An unexpected implementation failure was redacted.

Link copied to clipboard

A signed event's declared ID did not match its canonical fields.

Link copied to clipboard

Event JSON was malformed or did not contain the exact NIP-01 fields.

Link copied to clipboard

An event kind was outside the portable NIP-01 range.

Link copied to clipboard

A signed event's BIP-340 signature was invalid.

Link copied to clipboard

A raw event tag was empty or structurally invalid.

Link copied to clipboard

An event timestamp was negative or not portable across targets.

Link copied to clipboard

An external signature did not authenticate the prepared event.

Link copied to clipboard

A rumor was not a valid one-to-one NIP-17 text message.

Link copied to clipboard

A NIP-19 display identifier was malformed, unsupported, or oversized.

Link copied to clipboard

A NIP-59 envelope failed route, structure, or authentication checks.

Link copied to clipboard

A public key was not a valid canonical x-only secp256k1 key.

Link copied to clipboard

A secret key was not a valid 32-byte secp256k1 scalar.

Link copied to clipboard

A one-to-one NIP-17 text rumor could not be created.

Link copied to clipboard

A NIP-59 recipient envelope could not be created.

Link copied to clipboard

Plaintext exceeded the supported NIP-44 profile.

Link copied to clipboard

A stable redacted protocol, synchronization, media, or session failure.

Link copied to clipboard

An encrypted value named an unsupported algorithm.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

stable category that callers should branch on

Link copied to clipboard
open val message: String?