Skip to content
FracitalPublic

About

Reproducible builds of tor-js (the Ethereum Foundation's wasm build of arti) with STomp's stream patch, for powerMouse

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tor-js, Fracital build

tor-js 0.4.4 (arti compiled to wasm, MIT OR Apache-2.0: LICENSE-MIT, LICENSE-APACHE) built from its release commit d9d9612d10d3775ff100b70e96a291718191d856 with one patch, build/patches/0001-connect-streams.patch:

  • TorClient.connect(host, port, { isolationKey }): a TCP stream through Tor (the exit resolves host) on the circuits of the key's isolation group (the same groups as fetch's anonOptions.isolationKey), as { readable, writable } web streams of Uint8Array chunks. The release has only fetch.

This branch holds only what the build made (dist/), the licences and how it was built (build/). Install it as a git dependency:

"tor-js": "github:Fracital/tor-js#<commit>"

The wasm, and how to check it

Build dist/tor_js_bg.wasm sha256
this one (release + 0001) 2e435140e9d3ac8b7ddf3304fc1fdb379b7c2c15b0b77b207381a1a1b6981136
the release alone (npm tor-js@0.4.4) 071ffb356bdacbf37da1a5549f653ed23f6919a2a856335d082affabfc08fb3d

The second is what tor-js's own CI printed for the release (run 43154142421); building the release alone here gives it too, so the build below is the release's own, pinned tools and all: rustc 1.97.1, wasm-pack 0.14.0, binaryen 116, node 22.21.1 (build/upstream.env).

To reproduce both, with docker or podman:

cd build
PATCHES=0 ./build.sh   # the release alone: out-upstream/, checked against the second hash
./build.sh             # release + patches/: out/, checked against the first

build/Dockerfile clones tor-js at d9d9612d10d3775ff100b70e96a291718191d856, applies patches/, commits them with a fixed author and date (tor-js's build.rs embeds the commit, and a timestamp when the tree is dirty; the commit is db2a979b4549cd2c873b850fc6a024f995ebb293) and runs tor-js's own scripts/build.sh --release. build/README.md says more.

About

Reproducible builds of tor-js (the Ethereum Foundation's wasm build of arti) with STomp's stream patch, for powerMouse

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages