This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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); |