
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source 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
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 uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.