Updates
This commit is contained in:
parent
71875422a4
commit
ea53f26568
|
@ -205,7 +205,7 @@
|
||||||
let retrievedRLNEvents = false;
|
let retrievedRLNEvents = false;
|
||||||
const rlnInstancePromise = create();
|
const rlnInstancePromise = create();
|
||||||
|
|
||||||
const DEFAULT_SIGNATURE_MESSAGE =
|
const SIGNATURE_MESSAGE =
|
||||||
"The signature of this message will be used to generate your RLN credentials. Anyone accessing it may send messages on your behalf, please only share with the RLN dApp";
|
"The signature of this message will be used to generate your RLN credentials. Anyone accessing it may send messages on your behalf, please only share with the RLN dApp";
|
||||||
|
|
||||||
// Load zero-kit WASM blob.
|
// Load zero-kit WASM blob.
|
||||||
|
@ -283,7 +283,7 @@
|
||||||
importFromWalletButton.onclick = async () => {
|
importFromWalletButton.onclick = async () => {
|
||||||
const signer = provider.getSigner();
|
const signer = provider.getSigner();
|
||||||
|
|
||||||
const signature = await signer.signMessage(DEFAULT_SIGNATURE_MESSAGE);
|
const signature = await signer.signMessage(SIGNATURE_MESSAGE);
|
||||||
|
|
||||||
membershipKey = await rlnInstance.generateSeededMembershipKey(
|
membershipKey = await rlnInstance.generateSeededMembershipKey(
|
||||||
signature
|
signature
|
||||||
|
|
Loading…
Reference in New Issue