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

add twitter profile id prover #15

Merged
merged 7 commits into from
Oct 17, 2023
Merged

add twitter profile id prover #15

merged 7 commits into from
Oct 17, 2023

Conversation

0xtsukino
Copy link
Collaborator

No description provided.

mhchia and others added 7 commits October 5, 2023 20:21
modified notary server: https://github.com/mhchia/notary-server/tree/work-with-extension

Changes
- websocket connection to notary-server
        - HTTP request to /session first and get sessionId
                - Craft it through web_sys
                - Send HTTP request with `fetch`
                        - Usually it's done with window, but in web worker there is no window
        - Use WebSocket API to establish wss connection to notary server
                - Chang notary-server to accept a param `sessionId`
                        - In browser there is no way to add headers, so we couldn't add "X-Session-Id"
- Prover config must use the session id returned from the notary server

Concerns
- Now we have to manually set notary server as trusted since the cert is self-signed.
        - rootCert couldn't be added when initiating HTTP request due to browser security config
@0xtsukino 0xtsukino merged commit cada3fc into main Oct 17, 2023
1 of 2 checks passed
@heeckhau heeckhau deleted the zkitter-example branch August 22, 2024 09:31
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.

2 participants