Construct HTTP request mostly in js #18
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
!!! Steps 1~2 have been changed!!!
What's done?
Rust WASM
prover
tonotarize
method
,url
,headers
,body
,secrets
(to be hidden),reveals
(to be public)Javascript (
worker.ts
)notarizeTwitterDM
andnotarizeTwitterProfile
notary.efprivacyscaling.org:443
token
inwebsocketProxyURL
Steps to run
Step 1: Edit information
For general twitter info
tlsn-extension/src/pages/Offscreen/worker.ts
Lines 15 to 17 in a9bbe33
To run
notarizeTwitterDM
, fill intlsn-extension/src/pages/Offscreen/worker.ts
Lines 22 to 23 in a9bbe33
To run
notarizeTwitterProfile
, fill intlsn-extension/src/pages/Offscreen/worker.ts
Line 77 in a9bbe33
And choose which to run
tlsn-extension/src/pages/Offscreen/worker.ts
Lines 135 to 136 in a9bbe33
Step 2: Open a new terminal. Build and run a websocket proxy with multiple targets
Step 3: Build the wasm and run the dev server
Step 4: Load built extension
Go to
chrome://extensions
, clickLoad unpacked
, select thebuild
directoryStep 5: Run notarize
Open the TLSN Extension and click
Notarize
. Check out the console by clicking theoffscreen.html
in the inspect views section in TLSN Extension