Result

sealed interface Result

Outcome of a verify call.

Callers typically branch on this sealed type to distinguish replay from forgery in logs. All non-Valid outcomes are equally a refusal to process the callback; the granularity exists for diagnostics.

Inheritors

Types

Link copied to clipboard

The selected header did not match the expected t=<digits>, s=<base64> shape, the base64 payload failed to decode, or the signature bytes were rejected by the Ed25519 layer (e.g., wrong byte length).

Link copied to clipboard

Both Signature and X-Stellar-Signature were null or blank.

Link copied to clipboard

The cryptographic verification of an otherwise well-formed header failed.

Link copied to clipboard
data class Stale(val ageSeconds: Long) : CallbackSignatureVerifier.Result

The signed timestamp is outside the configured freshness window.

Link copied to clipboard

The signature is valid for the supplied body, freshness window, and host.