From 5343538b6c9929db99a1b0919c820de0aa0c0c29 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Mon, 26 Sep 2022 10:41:30 +1000 Subject: [PATCH] feat(rln-js): new pure javascript example for RLN --- rln-js/README.md | 11 ++++ rln-js/index.html | 143 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 rln-js/README.md create mode 100644 rln-js/index.html diff --git a/rln-js/README.md b/rln-js/README.md new file mode 100644 index 0000000..4053d34 --- /dev/null +++ b/rln-js/README.md @@ -0,0 +1,11 @@ +# Using RLN in JavaScript + +**Demonstrates**: + +- RLN: Generate proof +- Pure Javascript/HTML. +- Use minified bundle of js from unpkg.com, no import, no package manager. + +To test the example, simply download the `index.html` file from this folder and open it in a browser. + +The `master` branch's HEAD is deployed at https://examples.waku.org/rln-js/. diff --git a/rln-js/index.html b/rln-js/index.html new file mode 100644 index 0000000..97a7461 --- /dev/null +++ b/rln-js/index.html @@ -0,0 +1,143 @@ + + + + + + + JS-Waku light node example + + + + +

RLN

+ +

Credentials

+

Key

+
+
+

Commitment

+
+
+
+
+ +

Waku

+
+ +

Local Peer Id

+
+
+

Remote Peer Id

+
+
+ + + +
+ + + +
+
+
+ + + + +