about summary refs log tree commit diff
path: root/bundles/go-away/files/config/snippets/challenge-js-pow-sha256.yml
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/go-away/files/config/snippets/challenge-js-pow-sha256.yml')
-rw-r--r--bundles/go-away/files/config/snippets/challenge-js-pow-sha256.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/bundles/go-away/files/config/snippets/challenge-js-pow-sha256.yml b/bundles/go-away/files/config/snippets/challenge-js-pow-sha256.yml
new file mode 100644
index 0000000..78f57f0
--- /dev/null
+++ b/bundles/go-away/files/config/snippets/challenge-js-pow-sha256.yml
@@ -0,0 +1,15 @@
+challenges:
+  js-pow-sha256:
+    runtime: js
+    parameters:
+      # specifies the folder path that assets are under
+      # can be either embedded or external path
+      # defaults to name of challenge
+      path: "js-pow-sha256"
+      # needs to be under static folder
+      js-loader: load.mjs
+      # needs to be under runtime folder
+      wasm-runtime: runtime.wasm
+      wasm-runtime-settings:
+        difficulty: 20
+      verify-probability: 0.1