Skip to content

PolicyRejection

Defined in: src/signer/types.ts:86

Why a PolicyGatedSigner refused to sign. detail is human-readable and MUST NOT contain the nonce or any signature material.

The evaluator (evaluateSpendingPolicy) emits the revoked / expired / token_not_allowed / recipient_not_allowed / amount_exceeds_* reasons; the adapter additionally emits from_mismatch and (for mpc-2p) intent_digest_mismatch / unauthenticated / nonce_reuse_conflict. The consumer handles one SignResult regardless of adapter.

Properties

detail

readonly detail: string

Defined in: src/signer/types.ts:106

Human-readable reason; never contains the nonce or a signature.


reason

readonly reason: "revoked" | "expired" | "token_not_allowed" | "recipient_not_allowed" | "amount_exceeds_per_sign" | "amount_exceeds_cumulative" | "intent_digest_mismatch" | "unauthenticated" | "from_mismatch" | "nonce_reuse_conflict"

Defined in: src/signer/types.ts:87