Skip to content

Instantly share code, notes, and snippets.

View gerceboss's full-sized avatar

Nilav Prajapati gerceboss

View GitHub Profile
@gerceboss
gerceboss / app.js
Created September 3, 2024 22:48
Testing and benchmarking
// Deploy file
const { ethers } = require("ethers");
const lighthouse = require("@lighthouse-web3/sdk");
const kavach = require("@lighthouse-web3/kavach");
const dotenv = require("dotenv");
dotenv.config({});
const signAuthMessage = async (privateKey) => {
const signer = new ethers.Wallet(privateKey);
const authMessage = await kavach.getAuthMessage(signer.address);