
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
sweb3-eth-accounts
Advanced tools
Web3 module to generate Ethereum accounts and sign data and transactions.
This is a sub package of web3.js
This is the accounts package to be used in the sweb3-eth package.
Please read the documentation for more.
npm install sweb3-eth-accounts
Build running the following in the web3.js repository:
npm run-script build-all
Then include dist/sweb3-eth-accounts.js in your html file.
This will expose the Web3EthAccounts object on the window object.
// in node.js
var Web3EthAccounts = require('sweb3-eth-accounts');
var account = new Web3EthAccounts('ws://localhost:8546');
account.create();
> {
address: '0x2c7536E3605D9C16a7a3D7b1898e529396a65c23',
privateKey: '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318',
signTransaction: function(tx){...},
sign: function(data){...},
encrypt: function(password){...}
}
FAQs
Web3 module to generate Ethereum accounts and sign data and transactions.
We found that sweb3-eth-accounts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.