
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@vegaprotocol/protos
Advanced tools
@vegaprotocol/protos
Protocol Buffer messages for Vega in Javascript
import * as InputData from '@vegaprotocol/protos/vega/commands/v1/InputData/encode'
import * as Transaction from '@vegaprotocol/protos/vega/commands/v1/Transaction/encode'
import * as AccountType from '@vegaprotocol/protos/vega/AccountType'
const inputData = InputData.encode({
nonce: 10,
command: {
transfer: {
fromAccountType: AccountType.ACCOUNT_TYPE_GENERAL,
to: 'abcdefg',
toAccountType: AccountType.ACCOUNT_TYPE_GENERAL,
asset: 'BTC',
amount: '1'
}
}
})
const tx = Transaction.encode({
inputData: inputData,
version: 3,
from: {
pubKey: 'foo'// new Uint8Array(86)
},
signature: {
version: 2,
algo: 'vega/ed25519',
value: 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
},
proofOfWork: {
hashFunction: 'sha3_24_rounds',
tid: 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
}
})
npm install @vegaprotocol/protos
Building the Javascript bindings requires protoc
and make
to be installed on the system.
After cloning run npm install
and then make dist
to generate the bindings.
vega
is added as a git submodule. The goal is to release a new version to npm, tracking the
vega versions. To update the tracked tag, cd vega
and checkout the desired commitish, and
commit this version in the this repository.
FAQs
Protocol Buffer messages for Vega in Javascript
The npm package @vegaprotocol/protos receives a total of 0 weekly downloads. As such, @vegaprotocol/protos popularity was classified as not popular.
We found that @vegaprotocol/protos demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.