Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@kava-labs/cosmos-ledger
Advanced tools
provide simple Ledger tooling for the Kava Ledger App with user friendly errors
Kava Ledger is a fork of Lunie's library for interacting with the Cosmos Ledger Nano App. It provides a developer-friendly interface and user friendly error messages for an improved Ledger Nano development experience.
This library is based on ledger-cosmos-js by Juan Leni who also implemented the official Cosmos Ledger Nano App.
Thank you Juan! 🙌
yarn add @lunie/cosmos-ledger
import Ledger from "@lunie/cosmos-ledger"
// generate messages with "@lunie/cosmos-api"
const signMessage = {} || ``
const ledger = await Ledger().connect()
const signature = await ledger.sign(signMessage)
import Ledger from "@lunie/cosmos-ledger"
import Cosmos from "@lunie/cosmos-api"
const privateKey = Buffer.from(...)
const publicKey = Buffer.from(...)
// init cosmos API object
const cosmos = Cosmos(API_URL, ADDRESS)
// create a message
const msg = cosmos
.MsgSend({
toAddress: 'cosmos1abcd09876',
amounts: [{ denom: 'stake', amount: 10 }]
})
// create a signer
const ledgerSigner = async (signMessage) => {
const ledger = new Ledger()
await ledger.connect()
const publicKey = await ledger.getPubKey()
const signature = await ledger.sign(signMessage)
return {
signature,
publicKey
}
}
// send the transaction
const { included } = await msg.send({ gas: 200000 }, ledgerSigner)
// wait for the transaction to be included in a block
await included()
Ledger(
{ testModeAllowed = false },
hdPath = [44, 118, 0, 0, 0], // HDPATH
hrp = 'cosmos', // BECH32PREFIX
);
FAQs
provide simple Ledger tooling for the Kava Ledger App with user friendly errors
We found that @kava-labs/cosmos-ledger 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.