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.
RPCh SDK is a library which will be used by a client who wants to access the RPCh network, additionally, the SDK will be integrated into our own “RPCh web3 adaptors”. Through the SDK, the client should be able to send traffic through the RPCh network and maintain a reliability metric of used HOPR entry nodes.
You will need to have Node.js and npm/yarn installed on your computer. You can download them from their official website or use a package manager like Homebrew (for Mac) or Chocolatey (for Windows).
Install necessary packages
yarn add @rpch/sdk
Get your rpch client by visiting degen rpch website.
You can create an instance of the SDK by passing in the required options and key-value store functions:
import SDK from "@rpch/sdk";
const sdk = new SDK(<your-client-secret>)
Now you can start sending request similar to using fetch
:
const rpcReq = {
jsonrpc: "2.0",
method: "eth_chainId",
id: "test1",
params: [],
};
const resp = await sdk.send(rpcReq);
console.log(resp);
This will send the request through the HOPR network and return the response. If there is an error, it will be thrown.
In case you want to use a different EVM chain or a different RPC provider, just specify it in the options:
sdk.send(rpcReq, {
provider: 'https://ethereum-provider.rpch.tech'
});
Depending on which platform you are running the SDK, you need to enable debugging in different ways. We use the library debug for our logging.
DEBUG="rpch*" ..
localStorage
with keyval debug:rpch*
FAQs
## Description
The npm package @rpch/sdk receives a total of 2 weekly downloads. As such, @rpch/sdk popularity was classified as not popular.
We found that @rpch/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.