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

[DO NOT MERGE] Use notary-server #12

Closed
wants to merge 5 commits into from
Closed

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    7462ae9 View commit details
    Browse the repository at this point in the history
  2. Update rust-toolchain

    forcing nightly
    maceip authored and mhchia committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    ee2fc75 View commit details
    Browse the repository at this point in the history
  3. lint

    mhchia committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    07ac764 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. feat: work with modified notary server

    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
    mhchia committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    2569b20 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40acb41 View commit details
    Browse the repository at this point in the history