-
Notifications
You must be signed in to change notification settings - Fork 5
chore: refactor attestation creation #274
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?
Conversation
|
Claude finished @chris13524's task —— View job Code Review CompleteRefactoring attestation creation into separate module - found issues needing attention.
Issues FoundIssue 1: Silent attestation failures (relay.rs:1267, 1463, 1649, 1655) Issue 2: Missing message origin validation (verify/creation.rs:62-72) if event.origin() != expected_verify_origin { return; }Issue 3: Memory leak in attestation iframe (verify/creation.rs:56-97) Issue 4: Race condition in parallel attestation (relay.rs:1227-1277) Issue 5: Inconsistent conditional compilation (relay.rs:484) Issue 6: Type name collision (relay.rs:661, validation.rs:268) Issue 7: Attestation timeout insufficient (relay.rs:78) Issue 8: Error type too generic (verify/creation.rs:24) Issue 9: Unsafe unwrap in test (test_helpers/mod.rs:152-154) Issue 10: Missing cleanup on attestation send failure (verify/creation.rs:78-82) ✅ No external domain URLs detected (only walletconnect.org/reown.com domains found) |
762d53f to
c032475
Compare
| #[cfg(target_arch = "wasm32")] | ||
| const VERIFY_TIMEOUT: Duration = Duration::from_secs(5); |
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.
Clippy complains about unused constant on non-wasm build target.
| drop(encrypted_id); | ||
| drop(decrypted_id); |
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.
Avoid clippy unused warnings for non-wasm build targets
c032475 to
7db3b50
Compare
7db3b50 to
c49b702
Compare
0f8f1ea to
121dc70
Compare
|
@claude review |
|
Claude finished @chris13524's task —— View job 🔄 Incremental Review: Attestation Refactoring
Previously Identified Issues - Status UpdatePreviously Issue 2 (validate.rs:268): Type name collision - ✅ RESOLVED Previously Issue 3 (verify/creation.rs:56-97): Memory leak in attestation iframe - ✅ RESOLVED Previously Issue 2 (verify/creation.rs:62-72): Missing message origin validation - ✅ RESOLVED Previously Issue 10 (verify/creation.rs:78-82): Missing cleanup on send failure - ✅ RESOLVED New Issues FoundIssue 1: Clippy unused constant warning (relay.rs:78) Issue 2: Clippy unused variable warning (relay.rs:1282-1283) Issue 3: Race in attestation channel receive (relay.rs:1254-1277, 1634-1659) Issue 4: Silent attestation failure loses error context (relay.rs:1267, 1463, 1649, 1655) Issue 5: Missing iframe cleanup on state machine exit (relay.rs:1496-1506, 1804-1814) Issue 6: DurableSleep not cancelled on early state transitions (relay.rs:1438-1495) ✅ No external domain URLs detected |
121dc70 to
f2e8db5
Compare
Some("")) instead of null attestation (None).