You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(platform-wallet): recheck identity key expiry after asset-lock finality #6480
TL;DR: Recheck key expiry when a new identity is ready to sign after funding confirmation.
User story
As a wallet user, I want the wallet to stop a registration if its keys expire while funding is being confirmed, so I can retry with valid keys using the same funds.
Scenario
Base flow
Start a registration with a key that has enough time left to pass the initial check.
Wait for the funding confirmation long enough for the key to enter the expiry margin.
Continue the registration, or retry signing after another confirmation wait.
Actual behavior
The key set passes the initial check. The wallet can then sign and submit after a key enters the margin or expires during the wait.
Expected behavior
The wallet checks the key expiry again immediately before each signing attempt and stops if a key has too little time left. A tracked asset lock remains available for a later attempt with eligible keys.
Detailed discussion
Use the creation-key policy from the original request, including the 15-minute default and the explicit zero-margin behavior. Check the asset-lock-funded registration, invitation claim, and platform_wallet registration resume paths. Apply the check to the first signing attempt after the finality wait and any later attempt, including ChainLock fallback and height retries.
If a key fails the check after funding, return the typed expiry refusal through the funded-lock error path. Keep the lock and its available proof tracked for reuse, and preserve existing reconciliation for earlier submissions. Use a controlled clock to cover a key entering the margin during the first wait and between attempts. Verify that neither the signer nor submission is reached on the refused attempt.
Activity