diff --git a/server/go-http/server.go b/server/go-http/server.go index ea39af5..3dbe9f8 100644 --- a/server/go-http/server.go +++ b/server/go-http/server.go @@ -84,9 +84,9 @@ func postHandler(w http.ResponseWriter, r *http.Request) { hash := sha256.Sum256([]byte(challenge + nonce)) if checkDifficulty(hash[:], difficulty) { - fmt.Fprint(w, "
Success! Valid nonce.
Try again") + fmt.Fprint(w, "Invalid nonce.
Try again") + fmt.Fprint(w, "Invalid nonce.
Try againhttps://git.libroot.org/libroot/NOJSCAP/
If you don't already have the NOJSCAP client:
$ git clone https://git.libroot.org/libroot/NOJSCAP/$ cd NOJSCAP/client/
- $ python3 pow_client.py {{.Challenge}} {{.Difficulty}}
$ python3 nojscap.py {{.Challenge}} {{.Difficulty}}
Go:
-$ go run pow_client.go {{.Challenge}} {{.Difficulty}}
$ go run nojscap.go {{.Challenge}} {{.Difficulty}}
Node.js:
-$ node pow_client.js {{.Challenge}} {{.Difficulty}}
$ node nojscap.js {{.Challenge}} {{.Difficulty}}
Rust:
-$ rustc pow_client.rs -o pow_client_rs$ pow_client_rs {{.Challenge}} {{.Difficulty}}
$ rustc nojscap.rs -o nojscap_rs$ nojscap_rs {{.Challenge}} {{.Difficulty}}
C:
-$ gcc -O2 -o pow_client pow_client.c -lssl -lcrypto$ ./pow_client {{.Challenge}} {{.Difficulty}}
$ gcc -O2 -o nojscap nojscap.c -lssl -lcrypto$ ./nojscap {{.Challenge}} {{.Difficulty}}