fix: move hashcash PoW from build artifact to JSX source
Some checks failed
check / check (push) Failing after 48s

The hashcash proof-of-work implementation was incorrectly added to the
build artifact web/dist/app.js instead of the source file web/src/app.jsx.
Running web/build.sh would overwrite all hashcash changes.

Changes:
- Add checkLeadingZeros() and mintHashcash() functions to app.jsx
- Integrate hashcash into LoginScreen: fetch hashcash_bits from /server,
  compute stamp via Web Crypto API before session creation, show
  'Computing proof-of-work...' feedback
- Remove web/dist/ from git tracking (build artifacts)
- Add web/dist/ to .gitignore
This commit is contained in:
user
2026-03-10 02:58:48 -07:00
parent 8c2071f93a
commit 1e9fb36f5b
5 changed files with 66 additions and 481 deletions

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ data.db
debug.log
/neoirc-cli
web/node_modules/
web/dist/