A signature establishes approval of particular data under a particular scheme; it does not automatically mean an action is safe to execute repeatedly or in every context. Applications need their own rules for scope, lifetime and consumption. Design those rules before adding a convenient sign button. The user should understand the action being authorised, while the contract should reject uses outside the intended permission.

Specify the complete authorised action

List the actor, recipient, asset, amount, operation and any other parameter that changes the result. Decide which fields must be signed rather than supplied later by an untrusted caller. Avoid a broad approval whose actual consequence depends on hidden interface state. EIP-712 defines a structured signing approach but explicitly does not supply replay protection on its own. Treat the message format as one component of the authorisation design. The product brief should explain what a signature allows someone else to do and what it does not allow.

Bind the action to its context

Review how the signed data identifies the intended application, contract and network where relevant. A message meant for one context should not silently authorise a materially different action elsewhere. Verify the chosen implementation against current standards and library guidance. Include version changes in the design: an old signature should not acquire a new meaning after an upgrade without deliberate consideration. The review should compare the exact data being signed with the exact data verified, because a readable interface description cannot compensate for missing context in the actual payload.

Choose expiry and consumption rules

Decide whether approval is single-use, bounded by a counter or reusable within an explicitly defined scope. Set an expiry model appropriate to the task and explain it to the user. Consider cancellation and replacement of outstanding approvals. A signature that remains valid indefinitely may outlive the user's understanding of the offer or the interface that created it. Keep the consumption state coherent with execution so a failed attempt and a successful attempt have the intended effect. Document this distinction rather than leaving it as an accidental consequence of function ordering.

Test concurrent and repeated submission

Exercise the same signed action twice, submit competing actions and change relevant parameters in controlled tests. Include a relayer that delays submission and a user who cancels before execution. Verify the behaviour across the supported account types rather than assuming every signer has the same validation model. Preserve precise test cases for each boundary. The expected result should be explainable in product terms: one purchase, an expired offer or a cancelled authorisation, rather than only a low-level error code that leaves support guessing which rule applied.

Make outstanding authority visible

Where signatures can authorise future action, provide a way for users to understand relevant pending approvals and supported cancellation options. Keep logs or records sufficient to connect execution to the original authorisation without exposing secrets. Review the signing flow when the product adds new parameters or changes contracts. A useful signed-action feature reduces friction while preserving a narrow, comprehensible permission. Its safety comes from the complete authorisation policy, not from the presence of a familiar wallet signature prompt.

TAKE IT FORWARD

The key decisions.

  • Decide whether approval is single-use, bounded by a counter or reusable within an explicitly defined scope.
  • Exercise the same signed action twice, submit competing actions and change relevant parameters in controlled tests.
  • Where signatures can authorise future action, provide a way for users to understand relevant pending approvals and supported cancellation options.

Sources & further reading

Primary references for the concepts discussed. Check the applicable documentation when planning implementation.

  1. EIP-712 structured signing