diff --git a/rln-js/index.html b/rln-js/index.html index f658084..e368842 100644 --- a/rln-js/index.html +++ b/rln-js/index.html @@ -44,18 +44,20 @@
-

You can either generate new credentials:

- +

Generate new, or import existing, credentials from wallet:


+
+ +

-

Or import existing ones:

+

Import existing credentials manually:

-
- -
@@ -165,9 +162,6 @@ ); // Credentials Elements - const generateCredsButton = document.getElementById( - "generate-credentials" - ); const membershipIdInput = document.getElementById("membership-id"); const identityKeyInput = document.getElementById("id-key"); @@ -247,8 +241,6 @@ } } - generateCredsButton.disabled = !rlnInstance; - registerButton.disabled = !( membershipKey && retrievedRLNEvents && @@ -273,18 +265,6 @@ // Blockchain - generateCredsButton.onclick = async () => { - // sign message with ethers - const signer = provider.getSigner(); - - const signature = await signer.signMessage(signatureMessage); - - // provide the signature as a seed - membershipKey = rlnInstance.generateSeededMembershipKey(signature); - - updateFields(); - }; - membershipIdInput.onchange = updateFields; identityKeyInput.onchange = updateFields; commitmentKeyInput.onchange = updateFields;