Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@gobob/btcsnap
Advanced tools
Readme
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
The npm package @gobob/btcsnap receives a total of 4 weekly downloads. As such, @gobob/btcsnap popularity was classified as not popular.
We found that @gobob/btcsnap demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.