EVM

  • We are using ethers.js for this particular example

  • Use signer.signMessage message from Signer class

const message = await generateMessage()

const signer = new ethers.Wallet()

const signature = await signer.signMessage(message)

// OR

const signature = await signer.signMessage(Buffer.from(message))

Last updated