remove default signature message

This commit is contained in:
weboko 2023-01-19 23:11:56 +01:00
parent 53fba02bd6
commit 5924b5f010
No known key found for this signature in database
3 changed files with 5 additions and 10 deletions

View File

@ -44,8 +44,11 @@ rln.create().then(async rlnInstance => {
"any"
);
const DEFAULT_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";
const signer = provider.getSigner();
const signature = await signer.signMessage(rln.DEFAULT_SIGNATURE_MESSAGE);
const signature = await signer.signMessage(DEFAULT_SIGNATURE_MESSAGE);
console.log(`Got signature: ${signature}`);
const contract = await rln.RLNContract.init(rlnInstance, {address: rln.GOERLI_CONTRACT.address, provider: signer });

View File

@ -12,6 +12,3 @@ export const GOERLI_CONTRACT = {
address: "0x4252105670fe33d2947e8ead304969849e64f2a6",
abi: RLN_ABI,
};
export const DEFAULT_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";

View File

@ -1,9 +1,5 @@
import { RLNDecoder, RLNEncoder } from "./codec.js";
import {
DEFAULT_SIGNATURE_MESSAGE,
GOERLI_CONTRACT,
RLN_ABI,
} from "./const.js";
import { GOERLI_CONTRACT, RLN_ABI } from "./const.js";
import { Proof, RLNInstance } from "./rln.js";
import { MembershipKey } from "./rln.js";
import { RLNContract } from "./rln_contract.js";
@ -26,5 +22,4 @@ export {
RLNContract,
RLN_ABI,
GOERLI_CONTRACT,
DEFAULT_SIGNATURE_MESSAGE,
};