From ea9da4cf9011c1189ed68fa23c4868e4600679b9 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 28 Sep 2022 00:35:36 +1000 Subject: [PATCH 1/2] feat(rln-js): attach proofs --- rln-js/index.html | 212 ++++++++++++++++++++++++++++++---------------- 1 file changed, 140 insertions(+), 72 deletions(-) diff --git a/rln-js/index.html b/rln-js/index.html index 0fc063b..6864258 100644 --- a/rln-js/index.html +++ b/rln-js/index.html @@ -10,8 +10,24 @@

RLN

+

You can either generate new credentials:


+

Or import existing ones:


+ +
+ +
+ +
+ +
+ +
+

Credentials

+

Membership id

+
+

Key

@@ -23,19 +39,12 @@

Waku

- -

Local Peer Id

-
-
-

Remote Peer Id

-
-
- - -
+ + + +
+ @@ -44,24 +53,30 @@
From b12222c531a85422c5498964a63959a018b66fff Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 28 Sep 2022 00:37:34 +1000 Subject: [PATCH 2/2] feat(rln-js): add logs --- rln-js/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rln-js/index.html b/rln-js/index.html index 6864258..63d5642 100644 --- a/rln-js/index.html +++ b/rln-js/index.html @@ -202,7 +202,9 @@ const timestamp = new Date(); const msg = ProtoChatMessage.create({text, nick, timestamp: timestamp.valueOf()}); const payload = ProtoChatMessage.encode(msg).finish(); + console.log("Sending message with proof...") await node.lightPush.push(encoder, {payload, timestamp}); + console.log("Message sent!") textInput.value = null; };