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

POW broken #5

Closed
craig opened this issue Feb 24, 2024 · 3 comments
Closed

POW broken #5

craig opened this issue Feb 24, 2024 · 3 comments

Comments

@craig
Copy link
Contributor

craig commented Feb 24, 2024

After performing a few requests, the POW does show up. However, it cannot be solved by google-chrome-stable 121.0.6167.184-1:

pow

On Firefox 115.8.0esr-1~deb11u1, the first solve works (nice animation!) . After performing some more requests, I'm seeing the POW again, but something is broken:

pow2

@fionera
Copy link
Contributor

fionera commented Feb 24, 2024

Currently berghain only works when connecting via HTTPS, as these browser APIs are not available without a encrypted connection

@fionera
Copy link
Contributor

fionera commented Feb 25, 2024

I made a branch which should fix this by adding a fallback to a js implementation of sha256 but at the cost of filesize:

Without sha.js:
dist/index.html  6.48 kB │ gzip: 2.86 kB

With sha.js
dist/index.html  19.80 kB │ gzip: 7.68 kB

I could add both to the routing and return them conditionally, so that a HTTPS response always gets the smaller file and HTTP gets the bigger file. Don't know if that worth the effort as you have to increase the buffer-size to >20kb to fit the new file

@fionera
Copy link
Contributor

fionera commented Nov 19, 2024

Fixed by #14

@fionera fionera closed this as completed Nov 19, 2024
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

No branches or pull requests

2 participants