
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.
@covalenthq/js-sign
Advanced tools
Covalent browser compatible library for typed data signature creation and verification
js-sign library allows browsers and Node.js clients to create signature payload in order to interact with Covalent API. Generally, only one function call is required to create the necessary signature.
Currently, when using some Covalent API endpoints, the only data that required signing is the wallet address.
Embed the javascript source in html
<script src="https://cdn.jsdelivr.net/npm/@covalenthq/js-sign/dist/lib.min.js"></script>
Installing module
npm i --save @covalenthq/js-sign
The output of the build process is located in dist folder,
npm run build
https://gist.github.com/cloggo/8f1b16ef2bdcfd663e587dba11f2d116#file-covalent-js-sign-js
All new code changes should be covered with unit tests. You can run the tests with the following command,
npm run test
Provide private key to process.env.PRIVATE_KEY variable. You can use dotenv or any other way.
process.env.PRIVATE_KEY = ${YOUR_PRIVATE_KEY}
// import only required for Node.JS
import covalent from '@covalenthq/js-sign';
// To create the payload that include both the typed data challenge and the signature in base64 encoding format,
const privateKey = process.env.PRIVATE_KEY;
const covalentMessage {
address: "0x71d094E5382CA33B25B92d3A75d5C6f269A78fAe",
chainId: 1
};
const payload = covalent.createSignaturePayloadB64(privateKey, covalentMessage);
FAQs
Covalent browser compatible library for typed data signature creation and verification
The npm package @covalenthq/js-sign receives a total of 19 weekly downloads. As such, @covalenthq/js-sign popularity was classified as not popular.
We found that @covalenthq/js-sign demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.