
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@cosmology/cosmjs
Advanced tools
Wrapper of @uni-sign/auth and @uni-sign/cosmos to fit corresponding interfaces in @cosmjs
Wrapper of @uni-sign/auth
and @uni-sign/cosmos
to fit corresponding interfaces in @cosmjs
npm install @cosmology/cosmjs
To sign messages (taking stargate
signing client as example)
// import * from "@cosmology/cosmjs"; // Error: use sub-imports, to ensure small app size
import { StargateSigningClient } from "@cosmology/cosmjs/stargate";
const client = StargateSigningClient.connectWithSigner(<rpc-endpoint>, <offline signer>);
const result = await client.signAndBroadcast(<ADDRESS>, <MESSAGE>[], "auto");
// or you can use helper functions to do `signAndBroadcast`. taking send tokens as example
const result = await client.helpers.send(<ADDRESS>, <MsgSend message>, "auto", "");
console.log(result.transactionHash); // the hash of TxRaw
To construct an offline signer (taking direct
signer as example)
import { Secp256k1Wallet } from "@cosmology/cosmjs/wallets/secp256k1";
const wallet = Secp256k1Wallet.fromMnemonic("<MNEMONIC_WORDS>", { prefix: "<prefix>" });
const directOfflineSigner = wallet.toOfflineDirectSigner();
@cosmology/cosmjs/signing-client
@cosmology/cosmjs/stargate
@cosmology/cosmjs/cosmwasm-stargate
@cosmology/cosmjs/wallets/secp256k1
MIT License (MIT) & Apache License
Copyright (c) 2024 Cosmology (https://cosmology.zone/)
FAQs
Wrapper of @uni-sign/auth and @uni-sign/cosmos to fit corresponding interfaces in @cosmjs
The npm package @cosmology/cosmjs receives a total of 7 weekly downloads. As such, @cosmology/cosmjs popularity was classified as not popular.
We found that @cosmology/cosmjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.