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

Client-side implementation for onion requests #1000

Merged
merged 8 commits into from
Mar 25, 2020

Conversation

msgmaxim
Copy link

  • Disable long-polling
  • Onion path building with guard nodes: guard nodes persist in DB; there is a path per every guard node; every path rebuild tries to reuse existing guard nodes
  • Added GCM encryption used for every node on the path

js/modules/loki_rpc.js Outdated Show resolved Hide resolved
js/modules/loki_rpc.js Outdated Show resolved Hide resolved
@msgmaxim
Copy link
Author

Rebased onto latest clearnet and fixed linter warnings

js/modules/loki_rpc.js Show resolved Hide resolved
js/modules/loki_snode_api.js Outdated Show resolved Hide resolved
@@ -1428,6 +1428,9 @@
async function connect(firstRun) {
window.log.info('connect');

// Initialize paths for onion requests
await window.lokiSnodeAPI.buildNewOnionPaths();
Copy link

Choose a reason for hiding this comment

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

Not an issue but i would like to see what effect this has on startup time on mainnet.

Copy link
Author

Choose a reason for hiding this comment

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

600 ms on testnet

@msgmaxim msgmaxim merged commit a91d925 into oxen-io:clearnet Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants