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-bsc-controller
Advanced tools
[![npm version](https://badge.fury.io/js/@getsafle%2Fvault-bsc-controller.svg)](https://badge.fury.io/js/@getsafle%2Fvault-bsc-controller) [![Discussions][discussions-badge]]
A Module written in javascript for managing various keyrings of BSCereum accounts, encrypting them, and using them. This repository contains BSCHdKeyring
class to create Binance smart chain wallet from Safle Vault.
npm install --save @getsafle/vault-bsc-controller
const { KeyringController, getBalance } = require('@getsafle/vault-bsc-controller');
const bscController = 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 bscController.createNewVaultAndKeychain(password);
const keyringState = await bscController.createNewVaultAndRestore(password, mnemonic);
const keyringState = await bscController.addNewAccount(keyringObject);
const privateKey = await bscController.exportAccount(address);
const signedTx = await bscController.signTransaction(bscTx, _fromAddress);
const signedMsg = await bscController.signMessage(msgParams);
const signedObj = await bscController.sign(msgParams, pvtKey, web3Obj);
const signedData = await bscController.signTypedMessage(msgParams);
const balance = await getBalance(address, web3);
const receipt = await bscController.sendTransaction(signedTx, web3);
const fees = await bscController.getFees(rawTx, web3);
FAQs
[![npm version](https://badge.fury.io/js/@getsafle%2Fvault-bsc-controller.svg)](https://badge.fury.io/js/@getsafle%2Fvault-bsc-controller) [![Discussions][discussions-badge]]
The npm package @getsafle/vault-bsc-controller receives a total of 6 weekly downloads. As such, @getsafle/vault-bsc-controller popularity was classified as not popular.
We found that @getsafle/vault-bsc-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.