How to use web3-eth-personal - 1 common examples

To help you get started, we’ve selected a few web3-eth-personal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kleros / kleros-api-DEPRECATED / src / resources / Auth.js View on Github external
signMessage = (userAddress, data) => {
    const ethPersonal = new Personal(this._Web3Wrapper.getProvider())
    return new Promise((resolve, reject) => {
      ethPersonal.sign(data, userAddress, (error, result) => {
        if (error) reject(error)

        resolve(result)
      })
    })
  }

web3-eth-personal

Web3 module to interact with the Ethereum blockchain accounts stored in the node.

LGPL-3.0
Latest version published 6 months ago

Package Health Score

91 / 100
Full package analysis

Popular web3-eth-personal functions

Similar packages