From 9b470ec24637117d133d4f2c1138adaaaaea8e9f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 23 Mar 2025 19:11:26 +0800 Subject: tmpl.go: Message should go after the submit button --- tmpl.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tmpl.go') diff --git a/tmpl.go b/tmpl.go index 8fdbbd9..4910c7f 100644 --- a/tmpl.go +++ b/tmpl.go @@ -187,12 +187,6 @@ func init() {

You must complete this proof-of-work challenge before you can access this site.

- {{- if .Message }} -
-

{{ .Message }}

-
- {{- end }} -

Select a nonce no longer than 32 bytes, such that when it is appended to the decoded form of the challenge identifier, and the entire result is hashed with SHA-256, the first {{ .Global.NeedBits }} bits of the SHA-256 hash are all zeros. Within one octet, higher bits are considered to come before lower bits.

In other words, find an nonce NN with |N|32B\lvert N\rvert \le 32\,\mathrm{B}, such that SHA256(IN)<2{{ .Global.NeedBitsReverse }}\mathrm{SHA256}(I \,\|\, N) < 2^{{{ .Global.NeedBitsReverse }}} in big endian, where II is the identifier provided below.

@@ -210,6 +204,12 @@ func init() {
+ {{- if .Message }} +
+

{{ .Message }}

+
+ {{- end }} +

JavaScript seems to be disabled. You must solve the challenge externally.

-- cgit v1.2.3