mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-02-05 14:23:07 +00:00
remove default signature message
This commit is contained in:
parent
53fba02bd6
commit
5924b5f010
@ -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 });
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user