Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@cloud-cryptographic-wallet/web3-provider-adapter
Advanced tools
[![npm version](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fweb3-provider-adapter.svg)](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fweb3-provider-adapter)
This package allows you to use provider of web3.js with a variety of cloud service key management systems.
$ npm install @cloud-cryptographic-wallet/web3-provider-adapter web3
$ npm install @cloud-cryptographic-wallet/aws-kms-signer
import Web3 from "web3";
import { AwsKmsSigner } from "@cloud-cryptographic-wallet/aws-kms-signer";
import { createProvider } from "@cloud-cryptographic-wallet/web3-provider-adapter";
async function sendTxUsingAwsKmsSigner(rpcUrl: string) {
const region = "us-east-1";
const keyId = "e9005048-475f-4767-9f2d-0d1fb0c89caf";
const awsKmsSigner = new AwsKmsSigner(keyId, { region });
const provider = createProvider({ signers: [awsKmsSigner], rpcUrl });
const web3 = new Web3(provider as any);
const address = (await web3.eth.getAccounts())[0];
console.log(address);
if (!address) {
return;
}
const tx = await web3.eth.sendTransaction({
from: address,
to: address,
});
console.log({ tx });
}
$ npm install @cloud-cryptographic-wallet/cloud-kms-signer
import Web3 from "web3";
import { CloudKmsSigner } from "@cloud-cryptographic-wallet/cloud-kms-signer";
import { createProvider } from "@cloud-cryptographic-wallet/web3-provider-adapter";
async function sendTxUsingCloudKmsSigner(rpcUrl: string) {
const name =
"projects/aws-kms-provider/locations/asia-northeast1/keyRings/for-e2e-test/cryptoKeys/for-e2e-test/cryptoKeyVersions/1";
const cloudKmsSigner = new CloudKmsSigner(name);
const provider = createProvider({ signers: [cloudKmsSigner], rpcUrl });
const web3 = new Web3(provider as any);
const address = (await web3.eth.getAccounts())[0];
console.log(address);
if (!address) {
return;
}
const tx = await web3.eth.sendTransaction({
from: address,
to: address,
});
console.log({ tx });
}
FAQs
[![npm version](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fweb3-provider-adapter.svg)](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fweb3-provider-adapter)
The npm package @cloud-cryptographic-wallet/web3-provider-adapter receives a total of 9 weekly downloads. As such, @cloud-cryptographic-wallet/web3-provider-adapter popularity was classified as not popular.
We found that @cloud-cryptographic-wallet/web3-provider-adapter 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.