Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@cloud-cryptographic-wallet/ethers-adapter
Advanced tools
[![npm version](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fethers-adapter.svg)](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fethers-adapter)
This package allows you to use Signer of ethers with a variety of cloud service key management systems.
$ npm install @cloud-cryptographic-wallet/ethers-adapter ethers
$ npm install @cloud-cryptographic-wallet/aws-kms-signer
import { ethers } from "ethers";
import { AwsKmsSigner } from "@cloud-cryptographic-wallet/aws-kms-signer";
import { EthersAdapter } from "@cloud-cryptographic-wallet/ethers-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 = new ethers.providers.JsonRpcProvider(rpcUrl);
const signer = new EthersAdapter({ signer: awsKmsSigner }).connect(provider);
const address = await signer.getAddress();
console.log(address);
console.log(ethers.utils.formatEther(await signer.getBalance()));
const tx = await signer.sendTransaction({
from: address,
to: address,
});
console.log({ tx });
const receipt = await tx.wait();
console.log({ receipt });
}
$ npm install @cloud-cryptographic-wallet/cloud-kms-signer
import { ethers } from "ethers";
import { CloudKmsSigner } from "@cloud-cryptographic-wallet/cloud-kms-signer";
import { EthersAdapter } from "@cloud-cryptographic-wallet/ethers-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 = new ethers.providers.JsonRpcProvider(rpcUrl);
const signer = new EthersAdapter({ signer: cloudKmsSigner }).connect(
provider
);
const address = await signer.getAddress();
console.log(address);
console.log(ethers.utils.formatEther(await signer.getBalance()));
const tx = await signer.sendTransaction({
from: address,
to: address,
});
console.log({ tx });
const receipt = await tx.wait();
console.log({ receipt });
}
FAQs
[![npm version](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fethers-adapter.svg)](https://badge.fury.io/js/@cloud-cryptographic-wallet%2Fethers-adapter)
We found that @cloud-cryptographic-wallet/ethers-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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.