
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@deconet/truffle-ledger-provider
Advanced tools
This is a fork of https://github.com/hussy-io/truffle-ledger-provider that actually works. Now works with web3 1.0 and truffle 5! Probably won't work for older web3 versions, but commit https://github.com/deconet/truffle-ledger-provider/commit/b184bcb55dfaf4bf372490af5268f31190d4b136 may work with older web3 versions.
Ledger Wallet-enabled Web3 provider. Use it to sign transactions with Ledger Nano S or Ledger Blue.
$ npm i truffle-ledger-provider -S
You can use this provider wherever a Web3 provider is needed, not just in Truffle. For Truffle-specific usage, see next section.
Before using Ledger Wallet-enabled Web3 provider, you must change your Ledger App configuration as follows:
const LedgerWalletProvider = require('truffle-ledger-provider');
const ledgerOptions = {
networkId: 1, // mainnet
path: "44'/60'/0'/0", // ledger default derivation path
askConfirm: false,
accountsLength: 1,
accountsOffset: 0,
};
const provider = new LedgerWalletProvider(ledgerOptions, 'http://localhost:8545');
network
: number
. Ethereum network ID. 1-mainnet, 3-ropsten, etc.path
: string
. HD derivation path.askConfirm
: boolean
. If true, deployment of each contract must be confirmed.accountsLength
: number
. Number of accounts to derivate.accountsOffset
: number
. Offset index to use to start derivating the accounts.You can easily use this within a Truffle configuration. For instance:
truffle.js
const LedgerWalletProvider = require('truffle-ledger-provider');
const INFURA_APIKEY = '...'; // set your Infura API key
const ledgerOptions = {}; // use default options
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*', // Match any network id
},
ropsten: {
provider: new LedgerWalletProvider(ledgerOptions, `https://ropsten.infura.io/${INFURA_APIKEY}`),
network_id: 3,
gas: 4600000,
},
},
};
FAQs
Ledger Wallet-enabled Web3 provider
The npm package @deconet/truffle-ledger-provider receives a total of 0 weekly downloads. As such, @deconet/truffle-ledger-provider popularity was classified as not popular.
We found that @deconet/truffle-ledger-provider 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.