Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@gobob/btcsnap
Advanced tools
Snaps is a system that allows developers to safely build and expand the capabilities of MetaMask. It is a program that is run in an isolated environment with a limited set of capabilities, that can customize and modify MetaMask's wallet experience for end users. For example, a snap can add new APIs to MetaMask thus adding support for different blockchains or modify existing functionalities using internal APIs.
Additional information can be found here.
btcsnap
in your dappconst result: boolean = await ethereum.request({
method: 'wallet_requestSnaps',
params: {
'npm:@gobob/btcsnap': {},
},
});
const response = await ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: 'npm:@gobob/btcsnap',
request: {
method: 'btc_getPublicExtendedKey',
params: {
network: 'test',
scriptType: 'P2WPKH',
},
},
},
});
const result: {txId: string; txHex: string} = await ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: 'npm:@gobob/btcsnap',
request: {
method: 'btc_signPsbt',
params: {
psbt: base64Psbt, // base64 string for the pbst,
network: 'Main', // for testnet use "Test",
scriptType: 'P2PKH', // "P2SH-P2WPKH" or "P2WPKH"
},
},
},
});
Build the snap and test it locally with the following command:
yarn rebuild
Use the following command to run tests:
yarn test
FAQs
btcsnap: Metamask snap to manage your bitcoin
We found that @gobob/btcsnap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.