
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
bsv-wallet-95
Advanced tools
A simple Bitcoin SV wallet library
npm i bsv-wallet
const { Wallet } from "bsv-wallet"
const { Wallet } = require("bsv-wallet");
const myMnemonic = "awkward will execute giant ...";
const wallet = new Wallet({ key: myMnemonic });
const seed = "Kwn6yDoKobVjH2dqa9UZ4c5yXfUQQo6PxdQ...";
const walet = new Wallet({ key: seed, keyFormat: "string" });
const wallet = new Wallet();
const myNewWalletMnemonic = wallet.getMnemonic();
// to save it into a file
require("fs").writeFileSync("private.key", myNewWalletMnemonic);
// or into localStorage if your are into a web browser
localStorage.setItem("key", myNewWalletMnemonic);
const balanceInSatoshis = wallet.getBalance();
console.log({ balanceInSatoshis });
const friendAdr = "";
const txHex = await wallet.signTx({
to: friendAdr,
amount: 5000,
});
const txHex = "...";
wallet.broadcast(txHex); // return a promise to check if it worked or not
// * we import two wallet
const walletBob = new Wallet(key: "bob private key");
const walletAlice = new Wallet(key: "alice private key");
// * get the Alice address
const adrAlice = await walletAlice.getAddress();
// * sign a tx for Alice with the bob wallet
const txForAlice = await walletBob.signTx({
to: adrAlice,
amount: 1234
});
// right now the tx is signed but not in the bsv blockchain
// ( like a signed check but not delivered to the bank)
// to do so you will have to broadcast it
// either with the simpler classical model
walletBob.broadcast(txForAlice)
// or (optionnal) with the peer to peer model were it is to Alice that is in charge to get back her fund
walletAlice.broadcast(txForAlice)
There i no other documentation at this time but the autocomplete will mostly tell you how to use it
If you wish to contribute or encounter any issue You can contact me on my discord @Kysan#8315
FAQs
A Bitcoin SV Wallet Library
The npm package bsv-wallet-95 receives a total of 0 weekly downloads. As such, bsv-wallet-95 popularity was classified as not popular.
We found that bsv-wallet-95 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.