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.
@getsafle/vault-polygon-controller
Advanced tools
[![npm version](https://badge.fury.io/js/@getsafle%2Fvault-polygon-controller.svg)](https://badge.fury.io/js/@getsafle%2Fvault-polygon-controller) [![Discussions][discussions-
A Module written in javascript for managing various keyrings of Polygon accounts, encrypting them, and using them.
npm install --save @getsafle/vault-polygon-controller
const { KeyringController, getBalance } = require('@getsafle/vault-polygon-controller');
const polygonController = new KeyringController({
encryptor: {
// An optional object for defining encryption schemes:
// Defaults to Browser-native SubtleCrypto.
encrypt(password, object) {
return new Promise('encrypted!');
},
decrypt(password, encryptedString) {
return new Promise({ foo: 'bar' });
},
},
});
const keyringState = await polygonController.createNewVaultAndKeychain(password);
const keyringState = await polygonController.createNewVaultAndRestore(password, mnemonic);
const keyringState = await polygonController.addNewAccount(keyringObject);
const privateKey = await polygonController.exportAccount(address);
const signedTx = await polygonController.signTransaction(polygonTx, _fromAddress);
const signedMsg = await polygonController.signMessage(msgParams);
const signedObj = await polygonController.sign(msgParams, pvtKey, web3Obj);
const signedData = await polygonController.signTypedMessage(msgParams);
const balance = await getBalance(address, web3);
FAQs
[![npm version](https://badge.fury.io/js/@getsafle%2Fvault-polygon-controller.svg)](https://badge.fury.io/js/@getsafle%2Fvault-polygon-controller) [![Discussions][discussions-
We found that @getsafle/vault-polygon-controller demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.