Skip to content

feat: [IEL-185] Fci flow with generated nonce#581

Merged
Ladirico merged 9 commits intomasterfrom
IEL-185-Fci-nonce-expiration
Apr 2, 2026
Merged

feat: [IEL-185] Fci flow with generated nonce#581
Ladirico merged 9 commits intomasterfrom
IEL-185-Fci-nonce-expiration

Conversation

@soixdev91
Copy link
Copy Markdown
Collaborator

Short description

This PR introduces nonce lifecycle handling for the FCI sign flow, allowing to test the IO app behaviour with expired nonce running it with local configuration.

List of changes proposed in this pull request

  • Updated GET /api/v1/sign/qtsp/clauses to generate and return a fresh nonce, storing its expiration.
  • Updated POST /api/v1/sign/signatures to validate qtsp_clauses.nonce and return an error (500) when nonce is not valid.
  • Extended FCI router tests to cover nonce validation.

How to test

Run the IO app with .env.local, then start the FCI signing flow (the dev-server config must include at least one fci.waitForSignatureCount). Stop at any step before final signing. After the nonce validity window (fci.response.nonceDuration) has expired, try to complete the signature: POST /api/v1/sign/signatures should return 500, and the app should show an error message with a button to restart the signing flow.

Copy link
Copy Markdown
Collaborator

@freddi301 freddi301 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Ladirico Ladirico merged commit e566f71 into master Apr 2, 2026
5 checks passed
@Ladirico Ladirico deleted the IEL-185-Fci-nonce-expiration branch April 2, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants