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
platform-wallet: one lifecycle-gated signer for every payment path #5937
Payment paths that let the host sign without the teardown gate, then take the wallet's generation guard after the last signature and hold it through broadcast and bookkeeping, share one Rust helper. A fix to the gating or lock-order policy lands in every such path at once.
Current Behavior
Two separate implementations of the same state machine:
Compare the generation with Arc::ptr_eq under the manager lock.
Record the gated or removed state.
Expose gate() and removed().
They differ in the key type (IdentityPublicKey or PlatformAddress), in counting several inputs, and in handing the gate to the caller (into_gate).
Possible Solution
Move the shared part, "take the gate only if this wallet is still the current generation, keep it until released", into one IdentityWallet helper. Keep the two signing adapters thin. This is roughly 20 lines across two files, with no behaviour change.
Context
Raised in the review of #5929 and deferred, so that PR stays narrow. Related: #5925.
Activity