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.
bitmask-segwit
Advanced tools
Core functionality for the BitMask wallet - https://bitmask.app
BitMask is a Bitcoin-only web wallet and browser extension for accessing decentralized web applications on the Bitcoin timechain. It is designed to support UTXO-based smart contracting protocols such as RGB, in addition to Lightning payments.
This should work with either wasm-pack, trunk, or x86-64.
Some environment variables may be needed in order to compile on macos-aarch64, for more, see this.
If there are issues compiling, be sure to check you're compiling with the latest Rust version.
To build this as a NodeJS module, use: wasm-pack build --release --target bundler
cargo clippy --target wasm32-unknown-unknown
TEST_WALLET_SEED="replace with a 12 word mnemonic for a wallet containing testnet sats" wasm-pack test --headless --chrome
To run the bitmaskd node with REST server, either for testing the web wallet, or simply for increased privacy:
cargo install --features=server --path .
Then run bitmaskd
.
Parts of this application are built with conditional compilation statements for wasm32 support. This is a helpful command for checking linting and correctness while also developing on desktop platforms:
cargo clippy --target wasm32-unknown-unknown --no-default-features --release
Upon a new release, follow these steps:
cargo update
to update to latest deps.cargo +nightly udeps
to see if there are any unused dependencies.For running bitmask-core tests in Regtest Mode, please follow the steps below:
source .commands
or if using fish shell, bass source .commands
docker-compose build
.docker-compose up -d bitcoin1 electrs carbonado rgb-proxy
.cargo install bdk-cli
(We will use BDK to generate the mnemonic).bdk-cli key generate
.cargo test --test wallet -- create_wallet --exact --nocapture
.bc1 loadwallet default
, or if using a new wallet, bc1 createwallet default
.bc1 -generate 500
.bc1 sendtoaddress {MAIN_VAULT_ADDRESS} 10
. Change {MAIN_VAULT_ADDRESS}
with the address generated in the step 7.bc1 -generate 1
Running the tests: cargo test -- --test-threads 1
A.The bitcoin node does not work?
Check if your wallet is loaded. For that, run the command bitcoin1 loadwallet default
.
B.The electrs node does not work?
To stop the electrs freeze, run bitcoin1 -generate
.
FAQs
Core functionality for the BitMask wallet
The npm package bitmask-segwit receives a total of 2 weekly downloads. As such, bitmask-segwit popularity was classified as not popular.
We found that bitmask-segwit demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.