Skip to content
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

Refactor session config handling and cryptography logic for improved abstraction #1059

Merged
merged 54 commits into from
Nov 13, 2023

Conversation

bangtoven
Copy link
Contributor

@bangtoven bangtoven commented Nov 11, 2023

Summary

https://coinbase.slack.com/archives/C03QN57NMHV/p1699906732036009

  • consolidate listener functions
  • migrate session config handling from Relay to Connection
  • introduce WalletLinkConnectionCipher to encapsulate secret token management and cryptography logic
  • migrate cipher logic from Relay to Connection
  • add / update tests

How did you test your changes?

new & existing tests

@bangtoven bangtoven force-pushed the jungho/abstract-websocket-stuff branch from 77c29db to 82d231c Compare November 11, 2023 09:36
@bangtoven bangtoven force-pushed the jungho/abstract-websocket-stuff branch from 72dc289 to d8d771b Compare November 11, 2023 10:05
@bangtoven bangtoven force-pushed the jungho/abstract-websocket-stuff branch from 3b45dff to a316bc9 Compare November 13, 2023 05:49
@bangtoven bangtoven force-pushed the jungho/abstract-websocket-stuff branch 2 times, most recently from 5b994c2 to f88c1bf Compare November 13, 2023 07:26
@bangtoven bangtoven force-pushed the jungho/abstract-websocket-stuff branch from f88c1bf to 60c8d1a Compare November 13, 2023 07:27
@bangtoven bangtoven changed the title abstract websocket stuff Refactor session config handling and cryptography logic for improved abstraction Nov 13, 2023
Base automatically changed from jungho/wl-http to master November 13, 2023 18:33
# Conflicts:
#	packages/wallet-sdk/jest.config.ts
#	packages/wallet-sdk/src/connection/WalletLinkConnection.ts
@@ -5,4 +5,15 @@ module.exports = {
pragma: "h",
},
},
rules: {
'no-useless-constructor': 'off',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know what's useless or not

@bangtoven bangtoven marked this pull request as ready for review November 13, 2023 19:38
"@typescript-eslint/no-explicit-any": "off"
}
}
]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@fan-zhang-sv fan-zhang-sv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

niceee, lgtm! looks much cleaner now, ty!

@bangtoven bangtoven merged commit 0070e80 into master Nov 13, 2023
12 checks passed
@bangtoven bangtoven deleted the jungho/abstract-websocket-stuff branch November 13, 2023 22:12
bangtoven added a commit that referenced this pull request Feb 29, 2024
bangtoven added a commit that referenced this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants