-
Notifications
You must be signed in to change notification settings - Fork 5
feat: expiry #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: expiry #267
Conversation
|
Claude finished @chris13524's task —— View job Code Review: feat: expiryThis PR adds expiry functionality for sessions, session proposals, and pairings in the WalletConnect Sign implementation. Overall the implementation is solid, but there are several issues that should be addressed. Critical Issues1. Unsafe
|
| } | ||
| } | ||
|
|
||
| if let Ok(json_rpcs) = storage.get_all_json_rpc_with_timestamps() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider also deleting JSON-RPC history when session/pairings/etc. expire too
bbd2556 to
e79009b
Compare
5573b7a to
bfee6b0
Compare
e79009b to
05f9a93
Compare
bfee6b0 to
0e480a4
Compare
05f9a93 to
c9aa834
Compare
c9aa834 to
e92f8d2
Compare
5986c86 to
2ed13fb
Compare
Implements expiration a two separate parts:
ifstatements that prevent using, for example, an expired session. If an expired resource is trying to be used, it will simply block the usage. It doesn't try to expire the resource, or emit an event in this place.Remaining work:
msinstead of seconds for timer system for better event emitting accuracy