-
Notifications
You must be signed in to change notification settings - Fork 738
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
feat: verify v2 #5236
feat: verify v2 #5236
Conversation
…ct-monorepo into feat/verify-v2 # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
…d to be used and to fetch new public key if validation fails with the current stored key
…ct-monorepo into feat/verify-v2
…ct-monorepo into feat/verify-v2
There is a race condition that I'd like to see resolved, if not before merging then let's create an issue for it. The logic is if there isn't a saved public key in the verification step then it will request the public key in a blocking manner. In the happy case the public key will already be requested and stored during SDK initialization, but if the network request isn't complete when the verification step comes, then it will result in a second request and additional latency. The race condition can be avoided by awaiting the original request in the verification step.
|
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.
Looks solid 💪
A few more tests and it should be good to go
} catch (e) { | ||
this.logger.warn(e); | ||
} | ||
return ""; |
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.
Why are we retruning an empty string ?
…e:crypto` or `crypto.subtle`
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.
LFG 🚀
…^2.15.0 (#5795) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@walletconnect/react-native-compat](https://togithub.com/walletconnect/walletconnect-monorepo) | [`^2.14.0` -> `^2.15.0`](https://renovatebot.com/diffs/npm/@walletconnect%2freact-native-compat/2.14.0/2.15.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>walletconnect/walletconnect-monorepo (@​walletconnect/react-native-compat)</summary> ### [`v2.15.0`](https://togithub.com/WalletConnect/walletconnect-monorepo/releases/tag/2.15.0) [Compare Source](https://togithub.com/walletconnect/walletconnect-monorepo/compare/2.14.0...2.15.0) #### What's Changed - chore: prep for `2.14.0` release by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5195](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5195) - refactor: removes session approval peer acknowledgment delay by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5197](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5197) - chore(deps): update docker/build-push-action action to v6 by [@​renovate](https://togithub.com/renovate) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4641](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4641) - chore(deps): update actions/add-to-project action to v1.0.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5101](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5101) - chore: fix some comments by [@​renshuncui](https://togithub.com/renshuncui) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4640](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4640) - AlgorandProvider [#​877](https://togithub.com/walletconnect/walletconnect-monorepo/issues/877) [#​2760](https://togithub.com/walletconnect/walletconnect-monorepo/issues/2760) by [@​scholtz](https://togithub.com/scholtz) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5201](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5201) - chore: fix typo by [@​riyueguang](https://togithub.com/riyueguang) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5216](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5216) - chore: change handshake canary to only measure 1 client initialization by [@​chris13524](https://togithub.com/chris13524) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5250](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5250) - refactor: session settle response by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5259](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5259) - refactor: publishes session settle request before the session propose… by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5246](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5246) - feat: verify v2 by [@​ganchoradkov](https://togithub.com/ganchoradkov) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5236](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5236) - chore: partially dedupe fetch implementations and use native fetch instead by [@​talentlessguy](https://togithub.com/talentlessguy) in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5112](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5112) #### New Contributors - [@​renshuncui](https://togithub.com/renshuncui) made their first contribution in [https://github.com/WalletConnect/walletconnect-monorepo/pull/4640](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/4640) - [@​scholtz](https://togithub.com/scholtz) made their first contribution in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5201](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5201) - [@​riyueguang](https://togithub.com/riyueguang) made their first contribution in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5216](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5216) - [@​talentlessguy](https://togithub.com/talentlessguy) made their first contribution in [https://github.com/WalletConnect/walletconnect-monorepo/pull/5112](https://togithub.com/WalletConnect/walletconnect-monorepo/pull/5112) **Full Changelog**: WalletConnect/walletconnect-monorepo@2.14.0...2.15.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles. 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/valora-inc/wallet). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsibnBtIiwicmVub3ZhdGUiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: valora-bot <valorabot@valoraapp.com>
Description
Implemented verify v2 according to spec https://www.notion.so/walletconnect/Verify-Server-rewrite-tech-doc-Verify-API-V2-30e207c77f8447d8af37a186799b7c9e?pvs=4#fbc0ca6d67c444118599ba49d8b358f9
Type of change
How has this been tested?
reown-com/web-examples#662
Checklist
Additional Information (Optional)
Please include any additional information that may be useful for the reviewer.